comparison src/protocols/bonjour/bonjour.c @ 13910:6c907830a45f

[gaim-migrate @ 16408] Get rid of an assertion failure that I hit committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 03 Jul 2006 01:39:51 +0000
parents 8264f52a1142
children
comparison
equal deleted inserted replaced
13909:8264f52a1142 13910:6c907830a45f
554 #ifdef _WIN32 554 #ifdef _WIN32
555 g_free(fullname); 555 g_free(fullname);
556 #endif 556 #endif
557 557
558 /* Try to figure out a good host name to use */ 558 /* Try to figure out a good host name to use */
559 /* TODO: Avoiding 'localhost,' if possible */ 559 /* TODO: Avoid 'localhost,' if possible */
560 if (gethostname(hostname, 255) != 0) { 560 if (gethostname(hostname, 255) != 0) {
561 gaim_debug_warning("bonjour", "Error %d when getting host name. Using \"localhost.\"\n", errno); 561 gaim_debug_warning("bonjour", "Error %d when getting host name. Using \"localhost.\"\n", errno);
562 strcpy(hostname, "localhost"); 562 strcpy(hostname, "localhost");
563 } 563 }
564 default_hostname = g_strdup(hostname); 564 default_hostname = g_strdup(hostname);