aboutsummaryrefslogtreecommitdiffstats
path: root/lib/decoding
diff options
context:
space:
mode:
authorSteve Glass <smdg@hush.com>2016-02-27 19:47:00 +1000
committerSteve Glass <smdg@hush.com>2016-02-27 19:48:52 +1000
commit6b20e1fcdc2f9f5423e40166104b47ee13fb0e19 (patch)
treea6acae42d3930a300990cd5f4b13d15d53c97dd0 /lib/decoding
parent64f73887b07551d9a603f920063af04263fb03a7 (diff)
Fix buffer overrun/silence compiler warning
Diffstat (limited to 'lib/decoding')
-rw-r--r--lib/decoding/control_channels_decoder_impl.cc2
-rw-r--r--lib/decoding/tch_f_decoder_impl.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/decoding/control_channels_decoder_impl.cc b/lib/decoding/control_channels_decoder_impl.cc
index 1d25664..532e255 100644
--- a/lib/decoding/control_channels_decoder_impl.cc
+++ b/lib/decoding/control_channels_decoder_impl.cc
@@ -124,7 +124,7 @@ namespace gr {
//std::cout << "Everything correct" << std::endl;
}
//compress bits
- unsigned char outmsg[27];
+ unsigned char outmsg[28];
unsigned char sbuf_len=224;
int i, j, c, pos=0;
for(i = 0; i < sbuf_len; i += 8) {
diff --git a/lib/decoding/tch_f_decoder_impl.cc b/lib/decoding/tch_f_decoder_impl.cc
index cbb1481..f409d37 100644
--- a/lib/decoding/tch_f_decoder_impl.cc
+++ b/lib/decoding/tch_f_decoder_impl.cc
@@ -143,7 +143,7 @@ namespace gr {
if (syndrome == 0)
{
- unsigned char outmsg[27];
+ unsigned char outmsg[28];
unsigned char sbuf_len=224;
int i, j, c, pos=0;
for(i = 0; i < sbuf_len; i += 8) {