efl/embryo: Let's not overwrite memory here

Issue found by Klocwork

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 82767
This commit is contained in:
Daniel Willmann 2013-01-14 16:42:49 +00:00 committed by Daniel Willmann
parent 7905cd0354
commit 6bb09ee91c
1 changed files with 1 additions and 1 deletions

View File

@ -3099,7 +3099,7 @@ _edje_embryo_fn_external_param_get_str(Embryo_Program *ep, Embryo_Cell *params)
{
char *tmp = alloca(dst_len);
memcpy(tmp, eep.s, dst_len - 1);
tmp[dst_len] = '\0';
tmp[dst_len-1] = '\0';
SETSTR(tmp, params[3]);
}
return 1;