Merge pull request #160 from stiabhan/fix-overrun
Fix buffer overrun/silence compiler warning
This commit is contained in:
commit
66d8f7c154
|
@ -124,7 +124,7 @@ namespace gr {
|
||||||
//std::cout << "Everything correct" << std::endl;
|
//std::cout << "Everything correct" << std::endl;
|
||||||
}
|
}
|
||||||
//compress bits
|
//compress bits
|
||||||
unsigned char outmsg[27];
|
unsigned char outmsg[28];
|
||||||
unsigned char sbuf_len=224;
|
unsigned char sbuf_len=224;
|
||||||
int i, j, c, pos=0;
|
int i, j, c, pos=0;
|
||||||
for(i = 0; i < sbuf_len; i += 8) {
|
for(i = 0; i < sbuf_len; i += 8) {
|
||||||
|
|
|
@ -143,7 +143,7 @@ namespace gr {
|
||||||
|
|
||||||
if (syndrome == 0)
|
if (syndrome == 0)
|
||||||
{
|
{
|
||||||
unsigned char outmsg[27];
|
unsigned char outmsg[28];
|
||||||
unsigned char sbuf_len=224;
|
unsigned char sbuf_len=224;
|
||||||
int i, j, c, pos=0;
|
int i, j, c, pos=0;
|
||||||
for(i = 0; i < sbuf_len; i += 8) {
|
for(i = 0; i < sbuf_len; i += 8) {
|
||||||
|
|
Loading…
Reference in New Issue