MSG_DEBUG("msgInfo.displayTime : %s", ctime(&msgInfo.displayTime));
MSG_DEBUG("msgInfo.msgPort.valid : %d", msgInfo.msgPort.valid);
MSG_DEBUG("msgInfo.encodeType : %d", msgInfo.encodeType);
- MSG_DEBUG("msgInfo.dataSize : %d", msgInfo.dataSize);
+ MSG_DEBUG("msgInfo.dataSize : %zu", msgInfo.dataSize);
if (msgInfo.bTextSms == true) {
MSG_DEBUG("msgInfo.msgText : %s", msgInfo.msgText);
MSG_DEBUG("msgInfo.displayTime : %s", ctime(&msgInfo.displayTime));
MSG_DEBUG("msgInfo.msgPort.valid : %d", msgInfo.msgPort.valid);
MSG_DEBUG("msgInfo.encodeType : %d", msgInfo.encodeType);
- MSG_DEBUG("msgInfo.dataSize : %d", msgInfo.dataSize);
+ MSG_DEBUG("msgInfo.dataSize : %zu", msgInfo.dataSize);
MSG_DEBUG("msgInfo.msgId : %d", msgInfo.msgId);
if (msgInfo.bTextSms == true) {
msgInfo.dataSize = sizeof(pushMsg);
- MSG_DEBUG("dataSize : %d", msgInfo.dataSize);
+ MSG_DEBUG("dataSize : %zu", msgInfo.dataSize);
/* Add WAP Push Msg into DB */
err = SmsPluginStorage::instance()->checkMessage(&msgInfo);
/* skip 'basic' code */
iField++;
memset(authStr, 0x00, sizeof(authStr));
- snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(userId));
+ snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(userId));
sscanf((char*)(fieldValue + iField), authStr, userId);
iField = iField + AcStrlen((char*)userId) + 1;
memset(authStr, 0x00, sizeof(authStr));
- snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(passWd));
+ snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(passWd));
sscanf((char*)(fieldValue + iField), authStr, passWd);
iField = iField + AcStrlen((char*)userId) + 1;
int wrn = snprintf((char*)*pDecodedString, (sizeof(char)*WSP_STANDARD_STR_LEN_MAX*2), "basic %s/%s", userId, passWd);
/* skip 'basic' code */
iField++;
memset(authStr, 0x00, sizeof(authStr));
- snprintf(authStr, sizeof(authStr), "%%%ds", sizeof(userId));
+ snprintf(authStr, sizeof(authStr), "%%%zus", sizeof(userId));
sscanf((char*)(fieldValue + iField), authStr, userId);
iField = iField + AcStrlen((char*)userId) + 1;