24051e0561
from Wim Lewis <wiml at hhhh.org>
13 lines
550 B
Plaintext
13 lines
550 B
Plaintext
$OpenBSD: patch-app_cpp,v 1.4 2005/04/24 19:02:05 sturm Exp $
|
|
--- app.cpp.orig Sat Nov 6 00:25:29 2004
|
|
+++ app.cpp Thu Apr 21 19:59:48 2005
|
|
@@ -2444,7 +2444,7 @@ void XxApp::editFile( const QString& fil
|
|
size_t size;
|
|
/* Bind a name to the socket. */
|
|
name.sun_family = AF_FILE;
|
|
- ::strncpy( name.sun_path, "/tmp/xxdiff_socket", sizeof(name.sun_path) );
|
|
+ ::strlcpy( name.sun_path, "/tmp/xxdiff_socket", sizeof(name.sun_path) );
|
|
|
|
/* The size of the address is
|
|
the offset of the start of the filename,
|