From c78cc7c74b2802a23b8d9c6efa5ba4355b6fc3cc Mon Sep 17 00:00:00 2001
From: Dragos Oancea <dragos@signalwire.com>
Date: Thu, 5 Mar 2020 18:09:26 +0000
Subject: [PATCH] [spandsp] fix memcpy-param-overlap - use memmove()

---
 libs/spandsp/src/plc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/spandsp/src/plc.c b/libs/spandsp/src/plc.c
index bc744c6240..007c9604d0 100644
--- a/libs/spandsp/src/plc.c
+++ b/libs/spandsp/src/plc.c
@@ -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;
 }