5ab5cdd47d
In part from maintainer Dan Weeks <danimal@danimal.org>.
12 lines
404 B
Plaintext
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;
|
|
}
|