openbsd-ports/textproc/xxdiff/patches/patch-buffer_cpp

13 lines
476 B
Plaintext
Raw Normal View History

$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(
it != _directoryEntries.end();
++it ) {
int len = (*it).length();
- ::strncpy( bufferPtr, (*it).latin1(), len );
+ ::memcpy( bufferPtr, (*it).latin1(), len );
bufferPtr[len] = _newlineChar;
bufferPtr += len + 1;
}