summaryrefslogtreecommitdiff
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:29 +0000
commitb3c678c14a5a9c9831f14b76cb01ae17dd9ad631 (patch)
tree09bd11d137a818f19456ed5110e5eba10d0ac4f0
parenta2d42191c134cfd3d13861536ed6919b35924c25 (diff)
Edje entry: Fix memory corruption (of by one in allocation).
This fixes T867.
-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 07a5389456..30fdfa9030 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