summaryrefslogtreecommitdiff
path: root/x11/gtk2+extra/patches/patch-ad
blob: 3b4432d90d61832cff68f88810283300d12dd13b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-ad,v 1.1.1.1 2005/09/08 10:21:20 bouyer Exp $

--- gtkextra/gtkdirtree.c.orig	Fri Nov 30 10:12:16 2001
+++ gtkextra/gtkdirtree.c
@@ -259,8 +259,7 @@ gtk_dir_tree_init (GtkDirTree *dir_tree)
 
   /* Get the local hostname. */
 #ifndef G_OS_WIN32
-  if ((gethostname (localhost, MAXHOSTNAMELEN) != 0) &&
-      (getdomainname (localhost, MAXHOSTNAMELEN) != 0))
+  if (gethostname (localhost, MAXHOSTNAMELEN) != 0)
     strcpy (localhost, "LocalHost");
 #else
     strcpy (localhost, "My PC");