pidgin: 13c5077b: Build fix on Windows. Thanks to SuperMMX...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jul 20 14:31:21 EDT 2009


-----------------------------------------------------------------
Revision: 13c5077bcfd832ab1e88f6b32c9563e6d46ebf82
Ancestor: e45bf01fed589f33f1eccfd74cf7afec53af041a
Author: darkrain42 at pidgin.im
Date: 2009-07-20T18:28:16
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/13c5077bcfd832ab1e88f6b32c9563e6d46ebf82

Modified files:
        libpurple/dnsquery.c

ChangeLog: 

Build fix on Windows. Thanks to SuperMMX.

I should probably set up a cross-compile env...

-------------- next part --------------
============================================================
--- libpurple/dnsquery.c	485dbf82046fe5d16c260274432fa90cc23bb909
+++ libpurple/dnsquery.c	f48c115bd2165c4a63a1f9b47ccc459c748bf4ba
@@ -771,8 +771,8 @@ dns_thread(gpointer data)
 	query_data = data;
 
 #ifdef USE_IDN
-	if (!dns_str_is_ascii(dns_params.hostname)) {
-		rc = purple_network_convert_idn_to_ascii(dns_params.hostname, &hostname);
+	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];
@@ -785,7 +785,7 @@ dns_thread(gpointer data)
 		}
 	} else /* intentional fallthru */
 #endif
-	hostname = g_strdup(dns_params.hostname);
+	hostname = g_strdup(query_data->hostname);
 
 #ifdef HAVE_GETADDRINFO
 	g_snprintf(servname, sizeof(servname), "%d", query_data->port);


More information about the Commits mailing list