ofono/drivers
Denis Kenzior 52091a1af0 qmimodem: Fix format warning
../../drivers/qmimodem/network-registration.c: In function
‘extract_ss_info’:
../../drivers/qmimodem/network-registration.c:131:54: warning: ‘%03d’
directive output may be truncated writing between 3 and 5 bytes into a
region of size 4 [-Wformat-truncation=]
  131 |   snprintf(operator->mcc, OFONO_MAX_MCC_LENGTH + 1, "%03d",
        |                                                      ^~~~
	../../drivers/qmimodem/network-registration.c:131:53: note:
	directive argument in the range [0, 65535]
  131 |   snprintf(operator->mcc, OFONO_MAX_MCC_LENGTH + 1,
	      "%03d",
	            |
		    ^~~~~~

The MCC/MNC fields are limited to three digits.  Clamp the input to 999
to avoid the warning.
2020-09-08 11:19:54 -05:00
..
atmodem atmodem: Detect usage of AT+CGEREP 2020-09-01 11:10:14 -05:00
calypsomodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
cdmamodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
dunmodem drivers: constify vtables 2018-10-17 09:56:27 -05:00
gemaltomodem drivers: gemalto: add gprs-context driver 2020-08-19 09:50:39 -05:00
hfpmodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
hsomodem hsomodem: Remove unneeded if statement 2019-04-29 14:06:19 -05:00
huaweimodem huawei: fix AT^SYSCFGEX acqorder "0201" 2020-06-26 10:30:10 -05:00
iceramodem icera: Remove unneeded if statement 2019-04-29 14:06:27 -05:00
ifxmodem xmm7modem: Fix to set gateway in pdp context 2019-09-20 09:54:50 -05:00
infineonmodem infineon: Definitions for infineon modem 2015-10-13 21:35:07 -05:00
isimodem isimodem: Fix size calculation for address array 2019-08-12 19:36:42 +02:00
mbimmodem mbim: Don't copy too much 2019-11-13 17:01:15 -06:00
mbmmodem mbmmodem: Remove unneeded if 2019-04-29 14:11:22 -05:00
nwmodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00
qmimodem qmimodem: Fix format warning 2020-09-08 11:19:54 -05:00
rilmodem rilmodem: support cell type LTE for netmon 2020-07-31 10:21:00 -05:00
speedupmodem drivers: Update to the new util api 2018-12-27 18:18:51 -06:00
stemodem stemodem: Quiet warning about strncpy use 2019-05-16 15:10:09 -05:00
swmodem swmodem: Remove unneeded if statement 2019-04-29 14:01:41 -05:00
telitmodem drivers: Silence strncpy use warnings 2019-04-30 11:35:14 -05:00
ubloxmodem ublox: network-registration: Handle UREG unsolicited during poll 2020-02-14 11:24:14 -06:00
xmm7modem xmm7modem: adding netmon changes for reporting neighbouring cell 2019-06-07 11:41:37 -05:00
ztemodem treewide: Remove superfluous use of _GNU_SOURCE 2018-10-17 10:01:57 -05:00