efl/emotion: use path_max

still needs to change to use eina_prefix :-/



SVN revision: 82502
This commit is contained in:
Gustavo Sverzut Barbieri 2013-01-10 03:47:46 +00:00
parent dfb84c1657
commit 1fbed8d3a6
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{