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.
This commit is contained in:
Adrien Nader 2014-08-09 12:18:31 +02:00 committed by Carsten Haitzler (Rasterman)
parent 3778036926
commit a2d8c1651b
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ efreet_dirs_init(void)
/* xdg_data_dirs */
#ifdef _WIN32
snprintf(buf, 4096, "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
snprintf(buf, sizeof(buf), "%s\\Efl;" DATA_DIR ";/usr/share;/usr/local/share", getenv("APPDATA"));
xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS", buf);
#else
xdg_data_dirs = efreet_dirs_get("XDG_DATA_DIRS",