char buf[256];
if (ph->type == 145)
- sprintf(buf, "ATD+%s", ph->number);
+ snprintf(buf, sizeof(buf), "ATD+%s", ph->number);
else
- sprintf(buf, "ATD%s", ph->number);
+ snprintf(buf, sizeof(buf), "ATD%s", ph->number);
switch (clir) {
case OFONO_CLIR_OPTION_INVOCATION:
/* On calypso, 1X only releases active calls, while 7X releases
* active or held calls
*/
- sprintf(buf, "AT%%CHLD=7%d", id);
+ snprintf(buf, sizeof(buf), "AT%%CHLD=7%d", id);
calypso_template(vc, buf, cb, data);
}
{
char buf[32];
- sprintf(buf, "AT+CHLD=2%d", id);
+ snprintf(buf, sizeof(buf), "AT+CHLD=2%d", id);
calypso_template(vc, buf, cb, data);
}
{
char buf[128];
- sprintf(buf, "AT+CTFR=%s,%d", ph->number, ph->type);
+ snprintf(buf, sizeof(buf), "AT+CTFR=%s,%d", ph->number, ph->type);
calypso_template(vc, buf, cb, data);
}