From 9fdc2d4c997f4baf88439982acb9dd9eb38f515a Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sun, 21 Oct 2001 13:37:17 +0000 Subject: [PATCH] nooo nooo. it was right. we're not allocating an array of poitners to char. we're allocating an array (or reallocing in this case) an array of char's of size (size +1 amd size +2 respectively) :) SVN revision: 5544 --- legacy/ecore/src/e_x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/ecore/src/e_x.c b/legacy/ecore/src/e_x.c index f426ecbef8..88b173a8a7 100644 --- a/legacy/ecore/src/e_x.c +++ b/legacy/ecore/src/e_x.c @@ -2341,13 +2341,13 @@ ecore_window_get_command(Window win) s = NULL; size = strlen(cargv[0]); - REALLOC(s, char *, size + 1); + REALLOC(s, char, size + 1); strcpy(s, cargv[0]); for (i = 1; i < cargc; i++) { size += strlen(cargv[i]); - REALLOC(s, char *, size + 2); + REALLOC(s, char, size + 2); strcat(s, " "); strcat(s, cargv[i]);