test_win_keygrab: Fix buffer not null terminated error.

This fixes coverity CID 1308264.
This commit is contained in:
Daniel Juyung Seo 2015-06-26 10:08:08 +09:00
parent 48fd252c94
commit a7518cd19d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ _entry_changed_cb(void *data , Evas_Object *obj, void *event_info EINA_UNUSED)
api_data *api = data;
const char *str = elm_entry_entry_get(obj);
if (!str) return;
strncpy(api->keyname, str, PATH_MAX);
strncpy(api->keyname, str, PATH_MAX - 1);
printf("entry: %s\n",str);
}