summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-01-28 10:10:05 +0000
committerTom Hacohen <tom@stosb.com>2014-01-28 10:10:05 +0000
commitd9ef2b1aceaa6ef61a002ca187c4fa380dd6b528 (patch)
tree03b9019313c25afd4335efff9a07aa2ae345dcdd /src
parent4b457c5f2d3326d823ae756fdc8930da04ba0493 (diff)
Edje entry: Fix memory corruption (of by one in allocation).
This fixes T867.
Diffstat (limited to 'src')
-rw-r--r--src/lib/edje/edje_entry.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_entry.c b/src/lib/edje/edje_entry.c
index 5754a578ab..8b4d899a28 100644
--- a/src/lib/edje/edje_entry.c
+++ b/src/lib/edje/edje_entry.c
@@ -1072,7 +1072,7 @@ _anchor_format_parse(const char *item)
1072 if (end) len = end - start; 1072 if (end) len = end - start;
1073 else len = strlen(start); 1073 else len = strlen(start);
1074 1074
1075 tmp = malloc(len); 1075 tmp = malloc(len + 1);
1076 strncpy(tmp, start, len); 1076 strncpy(tmp, start, len);
1077 tmp[len] = '\0'; 1077 tmp[len] = '\0';
1078 1078