2005-04-24 15:02:04 -04:00
|
|
|
$OpenBSD: patch-buffer_cpp,v 1.3 2005/04/24 19:02:05 sturm Exp $
|
|
|
|
--- buffer.cpp.orig Sat Nov 6 00:25:29 2004
|
|
|
|
+++ buffer.cpp Thu Apr 21 19:59:48 2005
|
|
|
|
@@ -377,7 +377,7 @@ void XxBuffer::setDirectoryEntries(
|
2002-04-09 11:43:40 -04:00
|
|
|
it != _directoryEntries.end();
|
|
|
|
++it ) {
|
|
|
|
int len = (*it).length();
|
|
|
|
- ::strncpy( bufferPtr, (*it).latin1(), len );
|
2005-04-24 15:02:04 -04:00
|
|
|
+ ::memcpy( bufferPtr, (*it).latin1(), len );
|
|
|
|
bufferPtr[len] = _newlineChar;
|
2002-04-09 11:43:40 -04:00
|
|
|
bufferPtr += len + 1;
|
|
|
|
}
|