openbsd-ports/net/netatalk/patches/patch-etc_atalkd_main_c
pvalchev 69e49a8551 Update to netatalk-2.0.3 and get rid of old directory structure.
A long due update with important features such as long filenames,
unicode, etc.
From new maintainer "Arnaud Bergeron" <abergeron@gmail.com>
2006-09-22 05:54:33 +00:00

13 lines
473 B
Plaintext

$OpenBSD: patch-etc_atalkd_main_c,v 1.1 2006/09/22 05:56:25 pvalchev Exp $
--- etc/atalkd/main.c.orig Mon Jan 31 12:01:04 2005
+++ etc/atalkd/main.c Sat Dec 31 12:43:51 2005
@@ -1456,7 +1456,7 @@ int ifconfig( iname, cmd, sa )
int s;
memset(&ifr, 0, sizeof(ifr));
- strcpy( ifr.ifr_name, iname );
+ strlcpy( ifr.ifr_name, iname, ifr.ifr_name );
ifr.ifr_addr = *(struct sockaddr *)sa;
if (( s = socket( AF_APPLETALK, SOCK_DGRAM, 0 )) < 0 ) {