summaryrefslogtreecommitdiff
path: root/editors/gnuserv/patches/patch-aa
blob: b435fd848c08c46b644e16b8e26c29671f621722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.1.1.1 2003/06/08 05:46:34 epg Exp $

--- gnuserv.c.orig	Fri Sep 13 07:19:16 2002
+++ gnuserv.c
@@ -793,7 +793,7 @@ unix_init (void)
 	     + strlen (server.sun_path) + 1);
   server.sun_len = bindlen;
 #else
-  bindlen = strlen (server.sun_path) + sizeof (server.sun_family);
+  bindlen = strlen (server.sun_path) + 1 + sizeof (server.sun_family);
 #endif
 
   if (bind(ls,(struct sockaddr *)&server,bindlen) < 0)