fix svace issue 61/126761/2 accepted/tizen/unified/20170426.195525 submit/tizen/20170425.051340
authorKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 25 Apr 2017 04:58:13 +0000 (13:58 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Tue, 25 Apr 2017 04:59:51 +0000 (13:59 +0900)
Change-Id: I3dcce72d3174279b37cd387964278c0c479659c2
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
plugin/mms_plugin/MmsPluginDecode.cpp

index 2ef8d46..c91437f 100755 (executable)
@@ -19,6 +19,7 @@
 #include <sys/stat.h>
 #include <stdlib.h>
 #include <errno.h>
+#include <glib.h>
 
 #include "MsgUtilFile.h"
 #include "MsgUtilMime.h"
@@ -5616,7 +5617,7 @@ static bool __MmsMultipartSaveAsTempFile(MsgType *pPartType, MsgBody *pPartBody,
                        char destDrmPath[MSG_FILEPATH_LEN_MAX + 1] = {0, };
 
                        MsgGetFileNameWithoutExtension(destDrmPath, pPartBody->szOrgFilePath);
-                       strncat(destDrmPath, ".dcf", 4);
+                       g_strlcat(destDrmPath, ".dcf", 5);
 
                        bFileExist = MsgAccessFile(destDrmPath, F_OK);