diff options
author | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-10 03:47:46 +0000 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@gmail.com> | 2013-01-10 03:47:46 +0000 |
commit | 1fbed8d3a61e520271f79ddb8057b890a6b81727 (patch) | |
tree | 0de0b06052630d53f9626a19dcaf7643716a5109 /src/lib | |
parent | dfb84c1657bfb14a5236b881193b81f4c0b8a69b (diff) | |
download | efl-1fbed8d3a61e520271f79ddb8057b890a6b81727.tar.gz |
efl/emotion: use path_max
still needs to change to use eina_prefix :-/
SVN revision: 82502
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/emotion/emotion_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/emotion/emotion_main.c b/src/lib/emotion/emotion_main.c index 8416f50b1c..4e0aa5b75b 100644 --- a/src/lib/emotion/emotion_main.c +++ b/src/lib/emotion/emotion_main.c @@ -322,13 +322,13 @@ _emotion_eeze_events(const char *syspath, EAPI Eina_Bool emotion_init(void) { - char buffer[4096]; + char buffer[PATH_MAX]; if (_emotion_webcams_count++) return EINA_TRUE; ecore_init(); - snprintf(buffer, 4096, "%s/emotion.cfg", PACKAGE_DATA_DIR); + snprintf(buffer, sizeof(buffer), "%s/emotion.cfg", PACKAGE_DATA_DIR); _emotion_webcams_file = eet_open(buffer, EET_FILE_MODE_READ); if (_emotion_webcams_file) { |