diff --git a/src/juce_core/io/streams/juce_BufferedInputStream.cpp b/src/juce_core/io/streams/juce_BufferedInputStream.cpp index e23fd15eee..f9d4033bf7 100644 --- a/src/juce_core/io/streams/juce_BufferedInputStream.cpp +++ b/src/juce_core/io/streams/juce_BufferedInputStream.cpp @@ -100,7 +100,7 @@ void BufferedInputStream::ensureBuffered() && position >= bufferStart) { const int bytesToKeep = (int) (lastReadPos - position); - memcpy (buffer, buffer + position - bufferStart, bytesToKeep); + memmove (buffer, buffer + position - bufferStart, bytesToKeep); bufferStart = position;