aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-11 16:42:46 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-12 01:51:43 +0000
commitdf5147a8389f83cfde91caede32e6b72798b8c9c (patch)
tree8718945f54314f14382de44c02c292ba187af986
parentwarn - silence pointless warn with memcpy instead of strncpy (diff)
downloadenlightenment-df5147a8389f83cfde91caede32e6b72798b8c9c.tar.gz
warn - make buffer bigger to avoid trunc warn
-rw-r--r--src/modules/vkbd/e_kbd_int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/vkbd/e_kbd_int.c b/src/modules/vkbd/e_kbd_int.c
index 218f475d7..a828fd603 100644
--- a/src/modules/vkbd/e_kbd_int.c
+++ b/src/modules/vkbd/e_kbd_int.c
@@ -1100,7 +1100,7 @@ _e_kbd_int_layouts_list_update(E_Kbd_Int *ki)
{
Eina_List *files;
Eina_List *l;
- char buf[PATH_MAX], *file, *path;
+ char buf[PATH_MAX + 100], *file, *path;
const char *fl;
Eina_List *kbs = NULL, *layouts = NULL;
int ok;
@@ -1192,7 +1192,7 @@ _e_kbd_int_layouts_list_update(E_Kbd_Int *ki)
while (fgets(buf, sizeof(buf), f))
{
- char str[4096];
+ char str[PATH_MAX];
if (!isok)
{