seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ef5a4717f5a316f861aada9ae7cd0f5a83018cc9

commit ef5a4717f5a316f861aada9ae7cd0f5a83018cc9
Author: Daniel Juyung Seo <seojuyu...@gmail.com>
Date:   Fri Jun 26 10:08:08 2015 +0900

    test_win_keygrab: Fix buffer not null terminated error.
    
    This fixes coverity CID 1308264.
---
 src/bin/test_win_keygrab.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/test_win_keygrab.c b/src/bin/test_win_keygrab.c
index f1c7473..9032e9f 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)
    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);
 }
 

-- 


Reply via email to