use strlen to get string size, not sizeof

SVN revision: 47188
This commit is contained in:
Sebastian Dransfeld 2010-03-13 21:34:08 +00:00
parent 2f45f4ce6e
commit c0d814343d
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ _e_desktop_edit_create_data(E_Config_Dialog *cfd)
const char *file;
snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get());
if (!strncmp(dir, cfdata->editor->desktop->orig_path, sizeof(dir)))
if (!strncmp(dir, cfdata->editor->desktop->orig_path, strlen(dir)))
cfdata->desktop = cfdata->editor->desktop;
else
{