forked from enlightenment/efl
Allocate a bit more ram, that should shutup valgrind.
SVN revision: 26852
This commit is contained in:
parent
a23d884945
commit
3d9e259e7b
|
@ -890,7 +890,7 @@ if (files)
|
||||||
{
|
{
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
ecore_dlist_append(command, strdup(t));
|
ecore_dlist_append(command, strdup(t));
|
||||||
len += strlen(t);
|
len += strlen(t) + 1;
|
||||||
*p = '%';
|
*p = '%';
|
||||||
t = p;
|
t = p;
|
||||||
}
|
}
|
||||||
|
@ -898,6 +898,7 @@ if (files)
|
||||||
if (t < p)
|
if (t < p)
|
||||||
{
|
{
|
||||||
ecore_dlist_append(command, strdup(t));
|
ecore_dlist_append(command, strdup(t));
|
||||||
|
len += strlen(t) + 1;
|
||||||
}
|
}
|
||||||
free(params);
|
free(params);
|
||||||
params = NULL;
|
params = NULL;
|
||||||
|
@ -1048,7 +1049,7 @@ if (files)
|
||||||
/* Add it to the big buf. */
|
/* Add it to the big buf. */
|
||||||
if (escaped)
|
if (escaped)
|
||||||
{
|
{
|
||||||
big_len += strlen(escaped) + 1;
|
big_len += strlen(escaped) + 2;
|
||||||
big_buf = realloc(big_buf, big_len);
|
big_buf = realloc(big_buf, big_len);
|
||||||
strcat(big_buf, " ");
|
strcat(big_buf, " ");
|
||||||
strcat(big_buf, escaped);
|
strcat(big_buf, escaped);
|
||||||
|
@ -1063,9 +1064,9 @@ if (files)
|
||||||
/* Insert this bit into the command. */
|
/* Insert this bit into the command. */
|
||||||
if (t)
|
if (t)
|
||||||
{
|
{
|
||||||
len += strlen(t);
|
|
||||||
ecore_dlist_previous(command);
|
ecore_dlist_previous(command);
|
||||||
ecore_dlist_insert(command, strdup(t));
|
ecore_dlist_insert(command, strdup(t));
|
||||||
|
len += strlen(t) + 1;
|
||||||
ecore_dlist_next(command);
|
ecore_dlist_next(command);
|
||||||
ecore_dlist_next(command);
|
ecore_dlist_next(command);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue