Missing character at the end of SMS text (using ITAPI_SendSMS) on Motorola v325i. | developer.brewmp.com Missing character at the end of SMS text (using ITAPI_SendSMS) on Motorola v325i. | developer.brewmp.com

Developer

Missing character at the end of SMS text (using ITAPI_SendSMS) on Motorola v325i.

Forums:

Hi,

when app. directed sms is sent from Motorala v325i to any device, some characters are missing at the end of SMS text.

eg.::

I sent (Motorola v325i) : Hi there?
Any device received: Hi t

Anyone has some idea how to fix this ??

I am using ITAPI_SendSMS to send the sms.

Here is the code :

//nLength is a length of message
//pszMsg contains the message

int sz = ( nLength + 1 ) * sizeof(AECHAR); // size of sms...
AECHAR* buff = (AECHAR*) MALLOC( sz );
MEMSET(buff,0,sz);
STRTOWSTR(pszMsg, buff, sz);
nRetVal = ITAPI_SendSMS(pITapi, pszPhoneNo, (char*)buff, 0, (PFNSMSSTATUS) SendSmsCallBack, pApp);

Am I doing anything wrong??
But this code worked for other phones(eg: L7C, K1M etc)

I would appreciate any help.
Thanks in advance.
saurabh