mirror of git://git.sysmocom.de/ofono
1e176755af
The ofono phone number max length is 80 so a buffer size of 64 is obviously insufficient. Expanding the buffer to 128 prevents a potential failure and suppresses the folowing compiler warning: ../drivers/atmodem/sms.c: In function ‘at_csca_set’: ../drivers/atmodem/sms.c:108:40: warning: ‘%s’ directive output may be truncated writing up to 80 bytes into a region of size 55 [-Wformat-truncation=] snprintf(buf, sizeof(buf), "AT+CSCA=\"%s\",%d", sca->number, sca->type); ^~ ../drivers/atmodem/sms.c:108:2: note: ‘snprintf’ output between 13 and 103 bytes into a destination of size 64 snprintf(buf, sizeof(buf), "AT+CSCA=\"%s\",%d", sca->number, sca->type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
||
---|---|---|
.. | ||
atmodem.c | ||
atmodem.h | ||
atutil.c | ||
atutil.h | ||
call-barring.c | ||
call-forwarding.c | ||
call-meter.c | ||
call-settings.c | ||
call-volume.c | ||
cbs.c | ||
devinfo.c | ||
gnss.c | ||
gprs-context.c | ||
gprs.c | ||
lte.c | ||
network-registration.c | ||
phonebook.c | ||
sim.c | ||
sms.c | ||
stk.c | ||
stk.h | ||
ussd.c | ||
vendor.h | ||
voicecall.c |