From 3d9e259e7b644af5d5e2c43235fd5c12e72d3cac Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 29 Oct 2006 08:56:15 +0000 Subject: [PATCH] Allocate a bit more ram, that should shutup valgrind. SVN revision: 26852 --- legacy/ecore/src/lib/ecore_desktop/ecore_desktop.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_desktop/ecore_desktop.c b/legacy/ecore/src/lib/ecore_desktop/ecore_desktop.c index ce94270887..f657d03ad8 100644 --- a/legacy/ecore/src/lib/ecore_desktop/ecore_desktop.c +++ b/legacy/ecore/src/lib/ecore_desktop/ecore_desktop.c @@ -890,7 +890,7 @@ if (files) { *p = '\0'; ecore_dlist_append(command, strdup(t)); - len += strlen(t); + len += strlen(t) + 1; *p = '%'; t = p; } @@ -898,6 +898,7 @@ if (files) if (t < p) { ecore_dlist_append(command, strdup(t)); + len += strlen(t) + 1; } free(params); params = NULL; @@ -1048,7 +1049,7 @@ if (files) /* 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); @@ -1063,9 +1064,9 @@ if (files) /* 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); }