forked from enlightenment/enlightenment
warn - dont use strncpy that leads to warns - memcpy instead
code was fine - it just causes warnings.
This commit is contained in:
parent
dc56dd6ea1
commit
126f155179
|
@ -5896,7 +5896,7 @@ _e_fm2_typebuf_match(Evas_Object *obj, int next)
|
|||
if (sd->typebuf.buf[tblen - 1] != '*')
|
||||
{
|
||||
tb = alloca(tblen + 2);
|
||||
strncpy(tb, sd->typebuf.buf, tblen);
|
||||
memcpy(tb, sd->typebuf.buf, tblen);
|
||||
tb[tblen] = '*';
|
||||
tb[tblen + 1] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue