From 3cdc6eabd6fa0409432283ea0624b081ddb89fb8 Mon Sep 17 00:00:00 2001 From: xenakios Date: Thu, 16 Nov 2017 21:23:33 +0200 Subject: [PATCH] Back to memmove, should be correct according to Justin --- Source/WDL/resample.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/WDL/resample.cpp b/Source/WDL/resample.cpp index 9892413..bb9f985 100644 --- a/Source/WDL/resample.cpp +++ b/Source/WDL/resample.cpp @@ -632,7 +632,7 @@ int WDL_Resampler::ResampleOut(WDL_ResampleSample *out, int nsamples_in, int nsa m_samples_in_rsinbuf -= isrcpos; if (m_samples_in_rsinbuf <= 0) m_samples_in_rsinbuf=0; else - memcpy(localin, localin + isrcpos*nch,m_samples_in_rsinbuf*sizeof(WDL_ResampleSample)*nch); + memmove(localin, localin + isrcpos*nch,m_samples_in_rsinbuf*sizeof(WDL_ResampleSample)*nch); return ret;