warn - dont use strncpy that leads to warns - memcpy instead

code was fine - it just causes warnings.
This commit is contained in:
Carsten Haitzler 2019-01-11 11:46:50 +00:00
parent dc56dd6ea1
commit 126f155179
1 changed files with 1 additions and 1 deletions

View File

@ -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';
}