[spandsp] fix memcpy-param-overlap - use memmove()

This commit is contained in:
Dragos Oancea 2020-03-05 18:09:26 +00:00
parent 8e0c0df5b6
commit c78cc7c74b
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ static __inline__ void normalise_history(plc_state_t *s)
if (s->buf_ptr == 0) if (s->buf_ptr == 0)
return; return;
vec_copyi16(tmp, s->history, s->buf_ptr); vec_copyi16(tmp, s->history, s->buf_ptr);
vec_copyi16(s->history, &s->history[s->buf_ptr], PLC_HISTORY_LEN - s->buf_ptr); vec_movei16(s->history, &s->history[s->buf_ptr], PLC_HISTORY_LEN - s->buf_ptr);
vec_copyi16(&s->history[PLC_HISTORY_LEN - s->buf_ptr], tmp, s->buf_ptr); vec_copyi16(&s->history[PLC_HISTORY_LEN - s->buf_ptr], tmp, s->buf_ptr);
s->buf_ptr = 0; s->buf_ptr = 0;
} }