summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/server/WinNamedPipeStream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server/WinNamedPipeStream.cpp b/lib/server/WinNamedPipeStream.cpp
index 6ef174c8..34263683 100644
--- a/lib/server/WinNamedPipeStream.cpp
+++ b/lib/server/WinNamedPipeStream.cpp
@@ -293,7 +293,7 @@ int WinNamedPipeStream::Read(void *pBuffer, int NBytes, int Timeout)
}
memcpy(pBuffer, mReadBuffer, BytesToCopy);
- memcpy(mReadBuffer, mReadBuffer + BytesToCopy, BytesRemaining);
+ memmove(mReadBuffer, mReadBuffer + BytesToCopy, BytesRemaining);
mBytesInBuffer = BytesRemaining;
NumBytesRead = BytesToCopy;