openbsd-ports/textproc/xxdiff/patches/patch-buffer_cpp
sturm 24051e0561 update to xxdiff 3.1
from Wim Lewis <wiml at hhhh.org>
2005-04-24 19:02:04 +00:00

13 lines
476 B
Plaintext

$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;
}