forked from enlightenment/efl
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:
parent
9b983b96b1
commit
4d5430d438
|
@ -259,7 +259,7 @@ _strbuf_append(char *s, const char *s2, int *len, int *alloc)
|
||||||
return strdup("");
|
return strdup("");
|
||||||
}
|
}
|
||||||
l2 = strlen(s2);
|
l2 = strlen(s2);
|
||||||
tlen = *len + l2;
|
tlen = *len + l2 + 1;
|
||||||
if (tlen > *alloc)
|
if (tlen > *alloc)
|
||||||
{
|
{
|
||||||
char *ts;
|
char *ts;
|
||||||
|
|
Loading…
Reference in New Issue