forked from enlightenment/enlightenment
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:
parent
2ca0ca709a
commit
c974e62d02
|
@ -164,9 +164,10 @@ _e_kbd_buf_actual_string_update(E_Kbd_Buf *kb)
|
||||||
if ((actual_len + strlen(str) + 1) > actual_size)
|
if ((actual_len + strlen(str) + 1) > actual_size)
|
||||||
{
|
{
|
||||||
actual_size += 64;
|
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);
|
actual_len += strlen(str);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue