summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Willmann <d.willmann@samsung.com>2013-01-14 16:42:49 +0000
committerDaniel Willmann <daniel@totalueberwachung.de>2013-01-14 16:42:49 +0000
commit6bb09ee91c9d82e12c4dd1e8ffcecde5fae5d04d (patch)
tree4fee95fc30c793075b5ebd5c6b5c68d8934dde22
parent7905cd03549e787c36bfd7c636ee20dc771b03a2 (diff)
efl/embryo: Let's not overwrite memory here
Issue found by Klocwork Signed-off-by: Daniel Willmann <d.willmann@samsung.com> SVN revision: 82767
-rw-r--r--src/lib/edje/edje_embryo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index a8668eebbd..1697a3886c 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -3099,7 +3099,7 @@ _edje_embryo_fn_external_param_get_str(Embryo_Program *ep, Embryo_Cell *params)
3099 { 3099 {
3100 char *tmp = alloca(dst_len); 3100 char *tmp = alloca(dst_len);
3101 memcpy(tmp, eep.s, dst_len - 1); 3101 memcpy(tmp, eep.s, dst_len - 1);
3102 tmp[dst_len] = '\0'; 3102 tmp[dst_len-1] = '\0';
3103 SETSTR(tmp, params[3]); 3103 SETSTR(tmp, params[3]);
3104 } 3104 }
3105 return 1; 3105 return 1;