Fix issue detected by static analysis tool 56/140556/1
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Apr 2017 08:43:32 +0000 (17:43 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 25 Jul 2017 10:05:49 +0000 (19:05 +0900)
Change-Id: I932e74780c9e92b0ca4ee95ec194aa35401aa01c
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/w-input-stt-voice.cpp

index 9687541..17524fa 100755 (executable)
@@ -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(""));