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
This commit is contained in:
Mike Blumenkrantz 2010-12-22 22:22:59 +00:00
parent 2ca0ca709a
commit c974e62d02
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}