forked from enlightenment/efl
Revert "edje edje_embryo: use strncpy()."
This reverts commit 06bd8dcf33
.
just dismiss in coverity if the code is not actually wrong
This commit is contained in:
parent
f4606d54eb
commit
8c28a70b43
|
@ -1553,9 +1553,10 @@ _edje_embryo_fn_get_text(Embryo_Program *ep, Embryo_Cell *params)
|
|||
}
|
||||
else
|
||||
{
|
||||
int size = strlen(s) + 1;
|
||||
char *ss = alloca(size);
|
||||
strncpy(ss, s, size);
|
||||
char *ss;
|
||||
|
||||
ss = alloca(strlen(s) + 1);
|
||||
strcpy(ss, s);
|
||||
ss[params[3] - 1] = 0;
|
||||
SETSTR(ss, params[2]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue