Fixed interpreting USSD answers

This commit is contained in:
Pierre Pronchery 2015-12-28 17:01:19 +01:00
parent 6d335a1cc5
commit aec9c30294

View File

@ -4215,8 +4215,7 @@ static void _on_code_cusd(HayesChannel * channel, char const * answer)
unsigned int u;
char buf[32];
/* FIXME really implement */
if(sscanf(answer, "%u\"%31[^\"]\",%u", &u, buf, &u) >= 2)
if(sscanf(answer, "%u,\"%31[^\"]\",%u", &u, buf, &u) >= 2)
{
buf[sizeof(buf) - 1] = '\0';
event->notification.content = buf;