forked from enlightenment/efl
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:
parent
7905cd0354
commit
6bb09ee91c
|
@ -3099,7 +3099,7 @@ _edje_embryo_fn_external_param_get_str(Embryo_Program *ep, Embryo_Cell *params)
|
||||||
{
|
{
|
||||||
char *tmp = alloca(dst_len);
|
char *tmp = alloca(dst_len);
|
||||||
memcpy(tmp, eep.s, dst_len - 1);
|
memcpy(tmp, eep.s, dst_len - 1);
|
||||||
tmp[dst_len] = '\0';
|
tmp[dst_len-1] = '\0';
|
||||||
SETSTR(tmp, params[3]);
|
SETSTR(tmp, params[3]);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue