forked from enlightenment/efl
test_win_keygrab: Fix buffer not null terminated error.
This fixes coverity CID 1308264.
This commit is contained in:
parent
48fd252c94
commit
a7518cd19d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue