dbHandle.finalizeQuery();
dbHandle.endTrans(true);
} else {
- MsgStoUpdateMMSMessage(pMsg);
+ if (MsgStoUpdateMMSMessage(pMsg) != MSG_SUCCESS)
+ MSG_DEBUG("MsgStoUpdateMMSMessage is failed");
}
return MSG_SUCCESS;
}
}
} else if (msgType.mainType == MSG_MMS_TYPE) {
- char filePath[MSG_FILEPATH_LEN_MAX] = {0,};
- char dirPath[MSG_FILEPATH_LEN_MAX]= {0,};
+ char filePath[MSG_FILEPATH_LEN_MAX+1] = {0,};
+ char dirPath[MSG_FILEPATH_LEN_MAX+1]= {0,};
memset(sqlQuery, 0x00, sizeof(sqlQuery));
snprintf(sqlQuery, sizeof(sqlQuery), "SELECT FILE_PATH FROM %s WHERE MSG_ID = %d;",
/* check date value validity */
{
- if (( pTMData->tm_wday > 6 ) || (pTMData->tm_mon > 12 ) || (pTMData->tm_mday > 31 ))
+ if (( pTMData->tm_wday > 6 ) || (pTMData->tm_mon > 11 ) || (pTMData->tm_mday > 31 ))
{
MSG_DEBUG( "WspLHeaderDecodeDateValue: Date decode fail %d, %d, %d \n", pTMData->tm_wday, pTMData->tm_mon, pTMData->tm_mday );
strncpy( (char*)*pDecodedString, "Decoding Failed", WSP_STANDARD_STR_LEN_MAX-1);
char strTemp[MSG_MAX_DRM_FILE_PATH + 1] = {0,};
- strncpy(strTemp, szFileName, sizeof(strTemp));
+ strncpy(strTemp, szFileName, MSG_MAX_DRM_FILE_PATH);
drm_content_info_s content_info;
memset(&content_info, 0x00, sizeof(drm_content_info_s));
pBuf = (char *)malloc(len);
if(len < 1 || (pBuf == NULL)) {
- if (pBuf) {
- free(pBuf);
- pBuf = NULL;
- }
+// if (pBuf) {
+// free(pBuf);
+// pBuf = NULL;
+// }
return NULL;
}
if(start_status == 1) {
goto CATCH;
}
+
if ( ( pVCard = ( VTree* )malloc( sizeof( VTree ) ) ) == NULL ) {
start_status = 1;
goto CATCH;