changeset 28300:160b864e3d9b

Fix a string now that we're not in string freeze. Thanks, QuLogic!
author Paul Aurich <paul@darkrain42.org>
date Mon, 28 Sep 2009 02:30:09 +0000
parents 60e4ef6801ff
children 213a3449bb3c
files libpurple/dnsquery.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/dnsquery.c	Sat Sep 26 17:38:05 2009 +0000
+++ b/libpurple/dnsquery.c	Mon Sep 28 02:30:09 2009 +0000
@@ -774,11 +774,8 @@
 	if (!dns_str_is_ascii(query_data->hostname)) {
 		rc = purple_network_convert_idn_to_ascii(query_data->hostname, &hostname);
 		if (rc != 0) {
-			/* FIXME: Dirty 2.6.0 string freeze hack */
-			char tmp[8];
-			g_snprintf(tmp, sizeof(tmp), "%d", rc);
-			query_data->error_message = g_strdup_printf(_("Error resolving %s:\n%s"),
-					query_data->hostname, tmp);
+			query_data->error_message = g_strdup_printf(_("Error converting %s "
+					"to punycode: %d"), query_data->hostname, rc);
 			/* back to main thread */
 			purple_timeout_add(0, dns_main_thread_cb, query_data);
 			return 0;