{
*p = '\0';
ecore_dlist_append(command, strdup(t));
- len += strlen(t);
+ len += strlen(t) + 1;
*p = '%';
t = p;
}
if (t < p)
{
ecore_dlist_append(command, strdup(t));
+ len += strlen(t) + 1;
}
free(params);
params = NULL;
/* Add it to the big buf. */
if (escaped)
{
- big_len += strlen(escaped) + 1;
+ big_len += strlen(escaped) + 2;
big_buf = realloc(big_buf, big_len);
strcat(big_buf, " ");
strcat(big_buf, escaped);
/* Insert this bit into the command. */
if (t)
{
- len += strlen(t);
ecore_dlist_previous(command);
ecore_dlist_insert(command, strdup(t));
+ len += strlen(t) + 1;
ecore_dlist_next(command);
ecore_dlist_next(command);
}