openbsd-ports/x11/rxvt-unicode/patches/patch-src_rxvtd_C
2010-12-23 08:45:57 +00:00

13 lines
410 B
Plaintext

$OpenBSD: patch-src_rxvtd_C,v 1.2 2010/12/23 08:45:57 dcoppa Exp $
--- src/rxvtd.C.orig Mon Dec 13 17:37:52 2010
+++ src/rxvtd.C Thu Dec 23 09:34:10 2010
@@ -100,7 +100,7 @@ unix_listener::unix_listener (const char *sockname)
fcntl (fd, F_SETFL, O_NONBLOCK);
sa.sun_family = AF_UNIX;
- strcpy (sa.sun_path, sockname);
+ strlcpy (sa.sun_path, sockname, sizeof(sa.sun_path));
unlink (sockname);