diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-05-29 15:39:04 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-05-29 15:39:48 +0200 |
commit | f2699501bc20a1dc5ee965ca1cbb8f18a3471ff8 (patch) | |
tree | e4d187cdf2511c313ad573e3f3edb7c2136252f1 /src | |
parent | 8c6be75d4f73fe16d0493c9de636019dd52bcf00 (diff) |
gsm/sysinfo: Fix rsl2sitype array size
0xff is the maximum value ... so there is 256 elements.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gsm/sysinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsm/sysinfo.c b/src/gsm/sysinfo.c index 73225b15..9df18877 100644 --- a/src/gsm/sysinfo.c +++ b/src/gsm/sysinfo.c @@ -70,7 +70,7 @@ static const uint8_t sitype2rsl[_MAX_SYSINFO_TYPE] = { [SYSINFO_TYPE_5ter] = RSL_SYSTEM_INFO_5ter, }; -static const uint8_t rsl2sitype[0xff] = { +static const uint8_t rsl2sitype[256] = { [RSL_SYSTEM_INFO_1] = SYSINFO_TYPE_1, [RSL_SYSTEM_INFO_2] = SYSINFO_TYPE_2, [RSL_SYSTEM_INFO_3] = SYSINFO_TYPE_3, |