Etws some data error fixed.
authorByounghui <byounghui.lim@samsung.com>
Sun, 4 Aug 2013 07:51:31 +0000 (16:51 +0900)
committerByounghui <byounghui.lim@samsung.com>
Sun, 4 Aug 2013 07:51:31 +0000 (16:51 +0900)
Change-Id: Iba2e385871ea6eae68f83e6ad3b8862639cca059
Signed-off-by: Byounghui <byounghui.lim@samsung.com>
src/messaging/FMsg_IpcCallbackHandler.cpp

index 6d6d8d7..5b6b596 100644 (file)
@@ -588,10 +588,7 @@ _IpcCallbackHandler::IncomingCbsMessageCallback(msg_handle_t hMsgHandle, msg_str
        msg_get_int_value(newMsg, MSG_CB_MSG_SERIAL_NUM_INT, &serialNumber);
        msg_get_int_value(newMsg, MSG_CB_MSG_TYPE_INT, &cbsType);
 
-       Tizen::Base::Integer serialno(serialNumber);
-       length = serialno.ToString().GetLength();
-
-       msgSerialNumber.Construct(length);
+       msgSerialNumber.Construct(sizeof(int));
        msgSerialNumber.SetInt(0, serialNumber);
        msgSerialNumber.SetPosition(0);
 
@@ -610,16 +607,14 @@ _IpcCallbackHandler::IncomingCbsMessageCallback(msg_handle_t hMsgHandle, msg_str
                msgSecurityInfo.SetArray((byte*) etwsWarningInfo, 0, length);
                msgSecurityInfo.SetPosition(0);
 
-               Tizen::Base::Integer warningtype(etwsWarningType);
-               length = warningtype.ToString().GetLength();
-
-               etwsMsgWarningType.Construct(length);
+               etwsMsgWarningType.Construct(sizeof(int));
                etwsMsgWarningType.SetInt(0, etwsWarningType);
                etwsMsgWarningType.SetPosition(0);
 
                etwsNotifiation = true;
 
                SysLog(NID_MSG, "cbs etwsWarningType: [%d]", etwsWarningType);
+               SysLog(NID_MSG, "cbs etwsWarningInfo: [%s]", etwsWarningInfo);
 
                SysTryReturnVoidResult(NID_MSG, GetInstance()->__pCbsEtwsClientId != null, E_OUT_OF_MEMORY,"failed to get client id.");
                for ( int i = 0; i < GetInstance()->__pCbsEtwsClientId->GetCount(); i++)