Fix glibc invalid next size on free.

SVN revision: 25914
This commit is contained in:
Christopher Michael 2006-09-17 13:34:11 +00:00
parent 11b20db227
commit 63e239601b
1 changed files with 1 additions and 1 deletions

View File

@ -837,7 +837,7 @@ ecore_desktop_get_command(Ecore_Desktop *desktop, Ecore_List *files, int fill)
len += strlen(p);
}
free(params);
params = malloc(len);
params = malloc(len + 1);
if (params)
{
params[0] = '\0';