summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-06 16:05:10 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:43:58 +0000
commit07177d540c3a1d597bb9dabdbcac67fb0294c22d (patch)
tree37697af4331210b73dc6032526ee1afa3f862409 /src/lib/eina
parentcc9f4b8bd0635aaf9aa43e0aa8a407217e721344 (diff)
eina - vpath - silence buffer size truncation warning
add more space in dest buffer to silence warning about possible truncation by snprintf.
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_vpath_xdg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eina/eina_vpath_xdg.c b/src/lib/eina/eina_vpath_xdg.c
index c38d3d9731..5eff5fdb7d 100644
--- a/src/lib/eina/eina_vpath_xdg.c
+++ b/src/lib/eina/eina_vpath_xdg.c
@@ -23,7 +23,7 @@ eina_xdg_env_init(void)
23 23
24# if defined(HAVE_GETUID) && defined(HAVE_GETEUID) 24# if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
25# define ENV_HOME_SET(_env, _dir, _meta) \ 25# define ENV_HOME_SET(_env, _dir, _meta) \
26 char _meta [PATH_MAX]; \ 26 char _meta [PATH_MAX + 128]; \
27 if ((getuid() != geteuid()) || (!(s = getenv(_env)))) { \ 27 if ((getuid() != geteuid()) || (!(s = getenv(_env)))) { \
28 snprintf(_meta, sizeof(_meta), "%s/"_dir, home); \ 28 snprintf(_meta, sizeof(_meta), "%s/"_dir, home); \
29 s = _meta; \ 29 s = _meta; \
@@ -31,7 +31,7 @@ eina_xdg_env_init(void)
31 (&user)->_meta = s; 31 (&user)->_meta = s;
32#else 32#else
33# define ENV_HOME_SET(_env, _dir, _meta) \ 33# define ENV_HOME_SET(_env, _dir, _meta) \
34 char _meta [PATH_MAX]; \ 34 char _meta [PATH_MAX + 128]; \
35 if (!(s = getenv(_env))) { \ 35 if (!(s = getenv(_env))) { \
36 snprintf(_meta, sizeof(_meta), "%s/"_dir, home); \ 36 snprintf(_meta, sizeof(_meta), "%s/"_dir, home); \
37 s = _meta; \ 37 s = _meta; \