Make sure to always end a buffer
This commit is contained in:
parent
cca9370627
commit
974a57f68b
@ -4065,6 +4065,7 @@ static void _on_code_cusd(HayesChannel * channel, char const * answer)
|
||||
/* FIXME really implement */
|
||||
if(sscanf(answer, "%u\"%31[^\"]\",%u", &u, buf, &u) >= 2)
|
||||
{
|
||||
buf[sizeof(buf) - 1] = '\0';
|
||||
event->notification.content = buf;
|
||||
hayes->helper->event(hayes->helper->modem, event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user