Fix issue detected by static analysis tool 62/125662/2
authorsungwook79.park <sungwook79.park@samsung.com>
Tue, 18 Apr 2017 08:43:32 +0000 (17:43 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 18 Apr 2017 10:04:49 +0000 (03:04 -0700)
Change-Id: I932e74780c9e92b0ca4ee95ec194aa35401aa01c
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/w-input-stt-voice.cpp

index 7193560..6e50198 100755 (executable)
@@ -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(""));