From: Steve Underwood Date: Fri, 6 Dec 2013 17:57:59 +0000 (+0800) Subject: Eliminate a warning from valgrind, that might potentially be reporting actual X-Git-Tag: v1.4.2~3^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb3e84369237326bde74ece766ede5bcf990f4af;p=thirdparty%2Ffreeswitch.git Eliminate a warning from valgrind, that might potentially be reporting actual trouble. --- diff --git a/libs/spandsp/src/plc.c b/libs/spandsp/src/plc.c index 7b45dad988..cb40ea88e0 100644 --- a/libs/spandsp/src/plc.c +++ b/libs/spandsp/src/plc.c @@ -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; }