From a3357212439286ab2b9453abe4d58f009f66d59d Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Tue, 18 Apr 2017 17:43:32 +0900 Subject: [PATCH] Fix issue detected by static analysis tool Change-Id: I932e74780c9e92b0ca4ee95ec194aa35401aa01c Signed-off-by: sungwook79.park --- src/w-input-stt-voice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/w-input-stt-voice.cpp b/src/w-input-stt-voice.cpp index 9687541..17524fa 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -952,6 +952,7 @@ char *__get_genlist_item_label(void *data, Evas_Object *obj, const char *part) strncpy(text, p+1, strlen(s)-(p-s)-2); } else { strncpy(text, s, strlen(s)); + text[strlen(s)] = '\0'; } } else { strncpy(text, "", strlen("")); -- 2.7.4