Add room for '\0' in textblock calculations.

In evas_object_textblock, the length forgot the '\0', this create a
buffer overrun.

Author: Cedric BAIL


SVN revision: 33747
This commit is contained in:
Gustavo Sverzut Barbieri 2008-02-15 14:45:31 +00:00
parent 9b983b96b1
commit 4d5430d438
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ _strbuf_append(char *s, const char *s2, int *len, int *alloc)
return strdup("");
}
l2 = strlen(s2);
tlen = *len + l2;
tlen = *len + l2 + 1;
if (tlen > *alloc)
{
char *ts;