]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[spandsp] fix memcpy-param-overlap - use memmove() 472/head
authorDragos Oancea <dragos@signalwire.com>
Thu, 5 Mar 2020 18:09:26 +0000 (18:09 +0000)
committerDragos Oancea <dragos@signalwire.com>
Thu, 5 Mar 2020 18:11:50 +0000 (18:11 +0000)
libs/spandsp/src/plc.c

index bc744c624004c789b48590925c4e61f0e764e8a1..007c9604d05ecba761729e4237e01f42cc0f1a82 100644 (file)
@@ -85,7 +85,7 @@ static __inline__ void normalise_history(plc_state_t *s)
     if (s->buf_ptr == 0)
         return;
     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);
     s->buf_ptr = 0;
 }