fix load alloc bug.

SVN revision: 39980
This commit is contained in:
Carsten Haitzler 2009-04-11 12:34:14 +00:00
parent 75431ef347
commit d77c35a2fc
1 changed files with 2 additions and 4 deletions

View File

@ -53,14 +53,12 @@ _on_focus_hook(void *data, Evas_Object *obj)
static char *
_buf_append(char *buf, const char *str, int *len, int *alloc)
{
int len2;
len2 = strlen(str);
int len2 = strlen(str);
if ((*len + len2) >= *alloc)
{
char *buf2;
buf2 = realloc(buf, *alloc + 512);
buf2 = realloc(buf, *alloc + len2 + 512);
if (!buf2) return NULL;
buf = buf2;
*alloc += 512;