]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Eliminate a warning from valgrind, that might potentially be reporting actual
authorSteve Underwood <steveu@haswell.coppice.org>
Fri, 6 Dec 2013 17:57:59 +0000 (01:57 +0800)
committerSteve Underwood <steveu@haswell.coppice.org>
Fri, 6 Dec 2013 17:57:59 +0000 (01:57 +0800)
trouble.

libs/spandsp/src/plc.c

index 7b45dad988f1c79b01a63711e73a9770b24b15b2..cb40ea88e048e8bec11ef00a3960c366d44a998b 100644 (file)
@@ -84,7 +84,7 @@ static __inline__ void normalise_history(plc_state_t *s)
     if (s->buf_ptr == 0)
         return;
     memcpy(tmp, s->history, sizeof(int16_t)*s->buf_ptr);
-    memcpy(s->history, s->history + s->buf_ptr, sizeof(int16_t)*(PLC_HISTORY_LEN - s->buf_ptr));
+    memmove(s->history, s->history + s->buf_ptr, sizeof(int16_t)*(PLC_HISTORY_LEN - s->buf_ptr));
     memcpy(s->history + PLC_HISTORY_LEN - s->buf_ptr, tmp, sizeof(int16_t)*s->buf_ptr);
     s->buf_ptr = 0;
 }