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/unified/20170419.165325~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=db9ef5722565ca9b30509d37506932c6057f3ac1;p=platform%2Fcore%2Fuifw%2Finputdelegator.git 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 7193560..6e50198 100755 --- a/src/w-input-stt-voice.cpp +++ b/src/w-input-stt-voice.cpp @@ -954,6 +954,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(""));