openbsd-ports/textproc/xxdiff/patches/patch-buffer_cpp
naddy 5ab5cdd47d Unbreak by updating to 2.4 which uses tmake to configure.
In part from maintainer Dan Weeks <danimal@danimal.org>.
2002-04-09 15:43:40 +00:00

12 lines
404 B
Plaintext

--- buffer.cpp.orig Tue Feb 26 17:58:56 2002
+++ buffer.cpp Tue Feb 26 17:59:14 2002
@@ -291,7 +291,7 @@ void XxBuffer::setDirectoryEntries(
it != _directoryEntries.end();
++it ) {
int len = (*it).length();
- ::strncpy( bufferPtr, (*it).latin1(), len );
+ ::strlcpy( bufferPtr, (*it).latin1(), len );
bufferPtr[len] = '\n';
bufferPtr += len + 1;
}