Edje entry: Fix memory corruption (of by one in allocation).

This fixes T867.
This commit is contained in:
Tom Hacohen 2014-01-28 10:10:05 +00:00
parent 4b457c5f2d
commit d9ef2b1ace
1 changed files with 1 additions and 1 deletions

View File

@ -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';