mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
7ba93e94b6
gethostbyname(); it uses a 25-character buffer which is insufficient for some localhost domains; increase to 255 (plus terminating character), which is XNS5 recommendation. Obtained from: NetBSD
15 lines
343 B
Plaintext
15 lines
343 B
Plaintext
--- 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;
|
|
}
|
|
|