summaryrefslogtreecommitdiff
path: root/src/lib/efreet
diff options
context:
space:
mode:
authorAdrien Nader <adrien@notk.org>2014-08-09 12:18:31 +0200
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-14 20:55:58 +0900
commita2d8c1651ba14a97d2accb2b78fef1b7f5d1202f (patch)
tree22dd227158a6fb192c7775bd59b9d95f92a6c409 /src/lib/efreet
parent37780369266db89e968bf646ca76aa7605f00c78 (diff)
efreet: replace 4096 with sizeof(buf) in snprintf(buf, 4096, ...).
buf is a local variable defined as: char buf[4096]; The current code is correct; this change only makes sure the value won't get out-of-sync later on.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r--src/lib/efreet/efreet_base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/efreet/efreet_base.c b/src/lib/efreet/efreet_base.c
index 7a20a9c5a0..f43b1ddc7c 100644
--- a/src/lib/efreet/efreet_base.c
+++ b/src/lib/efreet/efreet_base.c
@@ -305,7 +305,7 @@ efreet_dirs_init(void)
305 305
306 /* xdg_data_dirs */ 306 /* xdg_data_dirs */
307#ifdef _WIN32 307#ifdef _WIN32
308 snprintf(buf, 4096, "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA")); 308 snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
309 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf); 309 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf);
310#else 310#else
311 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", 311 xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS",