Handled SVACE issue 10/213810/1
authorRandeep Singh <randeep.s@samsung.com>
Thu, 12 Sep 2019 06:15:04 +0000 (11:45 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Thu, 12 Sep 2019 06:15:04 +0000 (11:45 +0530)
Change-Id: I3e1abf687adc0682926fdd412d84d4b756ca27fd
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
proxy/MsgHandleSetting.cpp

index 31dcc08..b42052d 100755 (executable)
@@ -218,7 +218,7 @@ msg_error_t MsgHandle::getCBOption(msg_struct_t msg_struct)
        if (pEvent->result == MSG_SUCCESS) {
                int i = 0;
                MSG_CBMSG_OPT_S cb_opt_tmp = {0, };
-               memcpy(&cb_opt_tmp, pEvent->data, sizeof(MSG_CBMSG_OPT_S));
+               memcpy(&cb_opt_tmp, pEvent->data, sizeof(pEvent->data));
 
                MSG_CBMSG_OPT_HIDDEN_S *pTmp = (MSG_CBMSG_OPT_HIDDEN_S *)cb_opt->data;
                pTmp->bReceive = cb_opt_tmp.bReceive;