From f2699501bc20a1dc5ee965ca1cbb8f18a3471ff8 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 29 May 2011 15:39:04 +0200 Subject: gsm/sysinfo: Fix rsl2sitype array size 0xff is the maximum value ... so there is 256 elements. Signed-off-by: Sylvain Munaut --- src/gsm/sysinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3