From 5de8d9711f6d4b0813344d663761aca98a8e97ed Mon Sep 17 00:00:00 2001 From: Kyeonghun Lee Date: Tue, 25 Apr 2017 13:58:13 +0900 Subject: [PATCH] fix svace issue Change-Id: I3dcce72d3174279b37cd387964278c0c479659c2 Signed-off-by: Kyeonghun Lee --- plugin/mms_plugin/MmsPluginDecode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/mms_plugin/MmsPluginDecode.cpp b/plugin/mms_plugin/MmsPluginDecode.cpp index 2ef8d46..c91437f 100755 --- a/plugin/mms_plugin/MmsPluginDecode.cpp +++ b/plugin/mms_plugin/MmsPluginDecode.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #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); -- 2.7.4