diff options
author | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-02 20:43:24 +0100 |
---|---|---|
committer | Alexey Yakovenko <waker@users.sourceforge.net> | 2014-02-02 20:43:24 +0100 |
commit | e934ff5a1c09702b0d49d30f1709ae1e65a5f67e (patch) | |
tree | 074bf3a446ea67842d12b0a7100bea1fb897a2c2 /plugins/gtkui/fileman.c | |
parent | 8c415fbaba3a55b178ef47211e2d88c21ce5956e (diff) |
gtkui: fixed buffer overflow in drag-n-drop handler
Diffstat (limited to 'plugins/gtkui/fileman.c')
-rw-r--r-- | plugins/gtkui/fileman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gtkui/fileman.c b/plugins/gtkui/fileman.c index a62765ac..24b9ca8a 100644 --- a/plugins/gtkui/fileman.c +++ b/plugins/gtkui/fileman.c @@ -204,7 +204,7 @@ gtkpl_add_fm_dropped_files (DB_playItem_t *drop_before, char *ptr, int length) { pe++; } if (pe - p < 4096 && pe - p > 7) { - char fname[(int)(pe - p)]; + char fname[(int)(pe - p)+1]; strcopy_special (fname, p, pe-p); //strncpy (fname, p, pe - p); //fname[pe - p] = 0; |