summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-26 10:08:08 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-06-26 10:08:10 +0900
commitef5a4717f5a316f861aada9ae7cd0f5a83018cc9 (patch)
treeead89793fedd7a608ecc630c1756d3e297f68160
parent30b6179eb915595180fa30decc87434aa0c7e290 (diff)
test_win_keygrab: Fix buffer not null terminated error.
This fixes coverity CID 1308264.
-rw-r--r--src/bin/test_win_keygrab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/test_win_keygrab.c b/src/bin/test_win_keygrab.c
index f1c747397..9032e9fbb 100644
--- a/src/bin/test_win_keygrab.c
+++ b/src/bin/test_win_keygrab.c
@@ -58,7 +58,7 @@ _entry_changed_cb(void *data , Evas_Object *obj, void *event_info EINA_UNUSED)
58 api_data *api = data; 58 api_data *api = data;
59 const char *str = elm_entry_entry_get(obj); 59 const char *str = elm_entry_entry_get(obj);
60 if (!str) return; 60 if (!str) return;
61 strncpy(api->keyname, str, PATH_MAX); 61 strncpy(api->keyname, str, PATH_MAX - 1);
62 printf("entry: %s\n",str); 62 printf("entry: %s\n",str);
63} 63}
64 64