summaryrefslogtreecommitdiff
path: root/x11/kdelibs
diff options
context:
space:
mode:
authorkleink <kleink>2000-01-26 16:23:26 +0000
committerkleink <kleink>2000-01-26 16:23:26 +0000
commit4032f2283a6c616d9c9f6d4be9950528edf0b8a6 (patch)
treefa37459a5060f494bcd7fe26ccf3d3ad3c84ccaf /x11/kdelibs
parente2a245efcd5a25aced9edd3c745a353d1dfb2918 (diff)
downloadpkgsrc-4032f2283a6c616d9c9f6d4be9950528edf0b8a6.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/kdelibs')
-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;
+ }
+