aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2013-07-08 20:30:14 +0200
committerSylvain Munaut <tnt@246tNt.com>2013-07-09 01:09:03 +0200
commit4b7a86cfbf2da7bcdb4fee10654a7b8f41be6a2c (patch)
treee30eb155bffb8aba3b488bcda366d7bc03e68741 /src
parentb1ad269da17bb5199cfe8a00fbcd73fcd996c08e (diff)
l1/facch9: Fix wrong index when clearing last upper nibble in decode
Found by Coverity (Fixes CID 1042970) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r--src/l1/facch9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/l1/facch9.c b/src/l1/facch9.c
index 4903c0e..d32abd3 100644
--- a/src/l1/facch9.c
+++ b/src/l1/facch9.c
@@ -137,7 +137,7 @@ gmr1_facch9_decode(uint8_t *l2, sbit_t *bits_sacch, sbit_t *bits_status,
rv = osmo_crc16gen_check_bits(&gmr1_crc16, bits_u, 300, bits_u+300);
- l2[38] = 0; /* upper nibble won't be written */
+ l2[37] = 0; /* upper nibble won't be written */
osmo_ubit2pbit_ext(l2, 0, bits_u, 0, 300, 1);
return rv;