forked from enlightenment/efl
Edje entry: Fix memory corruption (of by one in allocation).
This fixes T867.
This commit is contained in:
parent
4b457c5f2d
commit
d9ef2b1ace
|
@ -1072,7 +1072,7 @@ _anchor_format_parse(const char *item)
|
|||
if (end) len = end - start;
|
||||
else len = strlen(start);
|
||||
|
||||
tmp = malloc(len);
|
||||
tmp = malloc(len + 1);
|
||||
strncpy(tmp, start, len);
|
||||
tmp[len] = '\0';
|
||||
|
||||
|
|
Loading…
Reference in New Issue