Code cleanup

This commit is contained in:
Pierre Pronchery 2014-09-05 21:19:56 +02:00
parent 9cab05b073
commit 8386c659f0

View File

@ -1680,7 +1680,7 @@ static char * _request_attention_message_send(Hayes * hayes,
len = sizeof(cmd) + 10 + pdulen + 1;
ret = malloc(len);
if(channel->quirks & HAYES_QUIRK_WANT_SMSC_IN_PDU)
pdulen-=2;
pdulen -= 2;
/* FIXME really issue using two separate commands */
if(ret != NULL)
snprintf(ret, len, "%s%lu\r\n%s", cmd, ((unsigned long)pdulen