openbsd-ports/x11/rxvt-unicode/patches/patch-src_rxvtc_C
dcoppa cb9f2317f5 Update to rxvt-unicode-9.09
From LEVAI Daniel, with tweaks by me.
He's also the new maintainer of this port.
2010-11-25 13:19:35 +00:00

13 lines
392 B
Plaintext

$OpenBSD: patch-src_rxvtc_C,v 1.1 2010/11/25 13:19:36 dcoppa Exp $
--- src/rxvtc.C.orig Sun Jun 15 15:39:43 2008
+++ src/rxvtc.C Sun Nov 14 14:23:05 2010
@@ -62,7 +62,7 @@ client::client ()
}
sa.sun_family = AF_UNIX;
- strcpy (sa.sun_path, sockname);
+ strlcpy (sa.sun_path, sockname, sizeof(sa.sun_path));
free (sockname);
if (connect (fd, (sockaddr *)&sa, sizeof (sa)))