From c974e62d02f672ca38612f8ed5212c72f1ea252a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 22 Dec 2010 22:22:59 +0000 Subject: [PATCH] this will avoid a segv, but the entire function is broken and should be looked at by someone who knows the code SVN revision: 55698 --- src/modules/illume/e_kbd_buf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/illume/e_kbd_buf.c b/src/modules/illume/e_kbd_buf.c index 010a389..0061d56 100644 --- a/src/modules/illume/e_kbd_buf.c +++ b/src/modules/illume/e_kbd_buf.c @@ -164,9 +164,10 @@ _e_kbd_buf_actual_string_update(E_Kbd_Buf *kb) if ((actual_len + strlen(str) + 1) > actual_size) { actual_size += 64; - actual = realloc(actual, actual_size); + actual = malloc(actual_size); + EINA_SAFETY_ON_NULL_RETURN(actual); + strcpy(actual, str); } - strcpy(actual + actual_len, str); actual_len += strlen(str); } } -- 2.7.4