[Box Backup-commit] COMMIT r1442 - box/chris/general/lib/server
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Sat Mar 24 14:39:08 GMT 2007
Author: chris
Date: 2007-03-24 14:39:08 +0000 (Sat, 24 Mar 2007)
New Revision: 1442
Modified:
box/chris/general/lib/server/WinNamedPipeStream.cpp
Log:
Use memmove() for overlapping buffers as pointed out by Charles (thanks!)
Modified: box/chris/general/lib/server/WinNamedPipeStream.cpp
===================================================================
--- box/chris/general/lib/server/WinNamedPipeStream.cpp 2007-03-24 14:38:37 UTC (rev 1441)
+++ box/chris/general/lib/server/WinNamedPipeStream.cpp 2007-03-24 14:39:08 UTC (rev 1442)
@@ -293,7 +293,7 @@
}
memcpy(pBuffer, mReadBuffer, BytesToCopy);
- memcpy(mReadBuffer, mReadBuffer + BytesToCopy, BytesRemaining);
+ memmove(mReadBuffer, mReadBuffer + BytesToCopy, BytesRemaining);
mBytesInBuffer = BytesRemaining;
NumBytesRead = BytesToCopy;
More information about the Boxbackup-commit
mailing list