mirror of git://git.sysmocom.de/ofono
Fix: Use proper printf format for string precision
This commit is contained in:
parent
210bb5cc0a
commit
86cd4951b3
|
@ -148,7 +148,7 @@ static void at_ussd_request(struct ofono_ussd *ussd, const char *str,
|
|||
if (written > max_len)
|
||||
goto error;
|
||||
|
||||
sprintf(buf, "AT+CUSD=1,\"%*s\",%d", (int) written, converted, dcs);
|
||||
sprintf(buf, "AT+CUSD=1,\"%.*s\",%d", (int) written, converted, dcs);
|
||||
|
||||
g_free(converted);
|
||||
converted = NULL;
|
||||
|
|
Loading…
Reference in New Issue