summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorkleink <kleink>2000-01-26 16:23:26 +0000
committerkleink <kleink>2000-01-26 16:23:26 +0000
commit6772048515965fe0bc1a1029d88d0e27148dab36 (patch)
treefa37459a5060f494bcd7fe26ccf3d3ad3c84ccaf /x11
parentcd41141beb31c491fe0656592ad05b01d889194a (diff)
downloadpkgsrc-6772048515965fe0bc1a1029d88d0e27148dab36.tar.gz
Don't try to use a 25-character buffer in gethostname() which won't work for
any `reasonably' named host; increase this to the XNS5 recommendation of 255 characters plus terminator. (This doesn't address the issue of sockaddr_un length limitations, however.)
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs/patches/patch-ab16
1 files changed, 16 insertions, 0 deletions
diff --git a/x11/kdelibs/patches/patch-ab b/x11/kdelibs/patches/patch-ab
new file mode 100644
index 00000000000..5e52d2b75b8
--- /dev/null
+++ b/x11/kdelibs/patches/patch-ab
@@ -0,0 +1,16 @@
+$NetBSD: patch-ab,v 1.3 2000/01/26 16:23:26 kleink Exp $
+
+--- kfmlib/kfm.cpp.orig Wed Jun 2 10:07:42 1999
++++ kfmlib/kfm.cpp Tue Jan 25 22:00:23 2000
+@@ -44,9 +44,9 @@
+ if (i==0)
+ {
+ // we are running local, so add the hostname
+- char name[25];
++ char name[256];
+
+- if (gethostname(name, 25) == 0)
++ if (gethostname(name, sizeof(name)) == 0)
+ d = name + d;
+ }
+