Make sure to always end a buffer

This commit is contained in:
Pierre Pronchery 2014-09-25 11:26:54 +03:00
parent cca9370627
commit 974a57f68b

View File

@ -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);
}