From: sungwook79.park Date: Tue, 18 Apr 2017 08:43:32 +0000 (+0900) Subject: Fix issue detected by static analysis tool X-Git-Tag: accepted/tizen/3.0/common/20170801.163338~2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Finputdelegator.git;a=commitdiff_plain;h=a3357212439286ab2b9453abe4d58f009f66d59d Fix issue detected by static analysis tool Change-Id: I932e74780c9e92b0ca4ee95ec194aa35401aa01c Signed-off-by: sungwook79.park --- 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(""));