Allow sending PDUs more than 99 bytes long

This commit is contained in:
Pierre Pronchery 2010-06-03 02:21:38 +00:00
parent b483b5c98f
commit b49fea57ac

View File

@ -483,7 +483,7 @@ int gsm_modem_send_message(GSMModem * gsmm, char const * number,
len2 = sizeof(cmd2) + 2 + strlen(addr ? addr : "") + sizeof(pid)
+ sizeof(dcs) + sizeof(vp) + 2 + strlen(data ? data : "") + 1;
buf2 = malloc(len2);
len1 = sizeof(cmd1) + 3;
len1 = sizeof(cmd1) + 4;
buf1 = malloc(len1);
if(addr == NULL || data == NULL || buf1 == NULL || buf2 == NULL)
{