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

This fixes T867.
devs/devilhorns/drm
Tom Hacohen 9 years ago
parent 4b457c5f2d
commit d9ef2b1ace
  1. 2
      src/lib/edje/edje_entry.c

@ -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…
Cancel
Save