- hostname_buf = (gchar*) g_malloc0(MAXHOSTNAMELEN);
- ret = (gchar*) g_malloc0(MAXHOSTNAMELEN);
-
- g_ptr_array_add(hostnamed_freeable, hostname_buf);
- g_ptr_array_add(hostnamed_freeable, ret);
-
- if(gethostname(hostname_buf, MAXHOSTNAMELEN) || g_strcmp0(hostname_buf, "") == 0)
- return "localhost";
-
- hostname_divider = strcspn(hostname_buf, ".");
-
- return strncpy(ret, hostname_buf, hostname_divider);*/
-
+ hostname_buf = (gchar*) g_malloc0(MAXHOSTNAMELEN);
+ static_hostname_buf = (gchar*) g_malloc0(4096);
+ pretty_hostname_buf = (gchar*) g_malloc0(4096);