changeset 24020:8691534526f1

merge of '0c4505a67ab2e90bf634a3d235022d369302e129' and '8aa307315f59dbc296ed3c18f7e87375d5f9bb30'
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sat, 30 Aug 2008 03:43:05 +0000
parents c0c82c50897f (current diff) cb60838756e7 (diff)
children 28c68cff8c8a
files pidgin/pixmaps/buddy_icons/qq/Makefile.am pidgin/pixmaps/buddy_icons/qq/Makefile.mingw pidgin/pixmaps/buddy_icons/qq/qq_1.png pidgin/pixmaps/buddy_icons/qq/qq_10.png pidgin/pixmaps/buddy_icons/qq/qq_100.png pidgin/pixmaps/buddy_icons/qq/qq_11.png pidgin/pixmaps/buddy_icons/qq/qq_12.png pidgin/pixmaps/buddy_icons/qq/qq_13.png pidgin/pixmaps/buddy_icons/qq/qq_14.png pidgin/pixmaps/buddy_icons/qq/qq_15.png pidgin/pixmaps/buddy_icons/qq/qq_16.png pidgin/pixmaps/buddy_icons/qq/qq_17.png pidgin/pixmaps/buddy_icons/qq/qq_18.png pidgin/pixmaps/buddy_icons/qq/qq_19.png pidgin/pixmaps/buddy_icons/qq/qq_2.png pidgin/pixmaps/buddy_icons/qq/qq_20.png pidgin/pixmaps/buddy_icons/qq/qq_21.png pidgin/pixmaps/buddy_icons/qq/qq_22.png pidgin/pixmaps/buddy_icons/qq/qq_23.png pidgin/pixmaps/buddy_icons/qq/qq_24.png pidgin/pixmaps/buddy_icons/qq/qq_25.png pidgin/pixmaps/buddy_icons/qq/qq_26.png pidgin/pixmaps/buddy_icons/qq/qq_27.png pidgin/pixmaps/buddy_icons/qq/qq_28.png pidgin/pixmaps/buddy_icons/qq/qq_29.png pidgin/pixmaps/buddy_icons/qq/qq_3.png pidgin/pixmaps/buddy_icons/qq/qq_30.png pidgin/pixmaps/buddy_icons/qq/qq_31.png pidgin/pixmaps/buddy_icons/qq/qq_32.png pidgin/pixmaps/buddy_icons/qq/qq_33.png pidgin/pixmaps/buddy_icons/qq/qq_34.png pidgin/pixmaps/buddy_icons/qq/qq_35.png pidgin/pixmaps/buddy_icons/qq/qq_36.png pidgin/pixmaps/buddy_icons/qq/qq_37.png pidgin/pixmaps/buddy_icons/qq/qq_38.png pidgin/pixmaps/buddy_icons/qq/qq_39.png pidgin/pixmaps/buddy_icons/qq/qq_4.png pidgin/pixmaps/buddy_icons/qq/qq_40.png pidgin/pixmaps/buddy_icons/qq/qq_41.png pidgin/pixmaps/buddy_icons/qq/qq_42.png pidgin/pixmaps/buddy_icons/qq/qq_43.png pidgin/pixmaps/buddy_icons/qq/qq_44.png pidgin/pixmaps/buddy_icons/qq/qq_45.png pidgin/pixmaps/buddy_icons/qq/qq_46.png pidgin/pixmaps/buddy_icons/qq/qq_47.png pidgin/pixmaps/buddy_icons/qq/qq_48.png pidgin/pixmaps/buddy_icons/qq/qq_49.png pidgin/pixmaps/buddy_icons/qq/qq_5.png pidgin/pixmaps/buddy_icons/qq/qq_50.png pidgin/pixmaps/buddy_icons/qq/qq_51.png pidgin/pixmaps/buddy_icons/qq/qq_52.png pidgin/pixmaps/buddy_icons/qq/qq_53.png pidgin/pixmaps/buddy_icons/qq/qq_54.png pidgin/pixmaps/buddy_icons/qq/qq_55.png pidgin/pixmaps/buddy_icons/qq/qq_56.png pidgin/pixmaps/buddy_icons/qq/qq_57.png pidgin/pixmaps/buddy_icons/qq/qq_58.png pidgin/pixmaps/buddy_icons/qq/qq_59.png pidgin/pixmaps/buddy_icons/qq/qq_6.png pidgin/pixmaps/buddy_icons/qq/qq_60.png pidgin/pixmaps/buddy_icons/qq/qq_61.png pidgin/pixmaps/buddy_icons/qq/qq_62.png pidgin/pixmaps/buddy_icons/qq/qq_63.png pidgin/pixmaps/buddy_icons/qq/qq_64.png pidgin/pixmaps/buddy_icons/qq/qq_65.png pidgin/pixmaps/buddy_icons/qq/qq_66.png pidgin/pixmaps/buddy_icons/qq/qq_67.png pidgin/pixmaps/buddy_icons/qq/qq_68.png pidgin/pixmaps/buddy_icons/qq/qq_69.png pidgin/pixmaps/buddy_icons/qq/qq_7.png pidgin/pixmaps/buddy_icons/qq/qq_70.png pidgin/pixmaps/buddy_icons/qq/qq_71.png pidgin/pixmaps/buddy_icons/qq/qq_72.png pidgin/pixmaps/buddy_icons/qq/qq_73.png pidgin/pixmaps/buddy_icons/qq/qq_74.png pidgin/pixmaps/buddy_icons/qq/qq_75.png pidgin/pixmaps/buddy_icons/qq/qq_76.png pidgin/pixmaps/buddy_icons/qq/qq_77.png pidgin/pixmaps/buddy_icons/qq/qq_78.png pidgin/pixmaps/buddy_icons/qq/qq_79.png pidgin/pixmaps/buddy_icons/qq/qq_8.png pidgin/pixmaps/buddy_icons/qq/qq_80.png pidgin/pixmaps/buddy_icons/qq/qq_81.png pidgin/pixmaps/buddy_icons/qq/qq_82.png pidgin/pixmaps/buddy_icons/qq/qq_83.png pidgin/pixmaps/buddy_icons/qq/qq_84.png pidgin/pixmaps/buddy_icons/qq/qq_85.png pidgin/pixmaps/buddy_icons/qq/qq_86.png pidgin/pixmaps/buddy_icons/qq/qq_87.png pidgin/pixmaps/buddy_icons/qq/qq_88.png pidgin/pixmaps/buddy_icons/qq/qq_89.png pidgin/pixmaps/buddy_icons/qq/qq_9.png pidgin/pixmaps/buddy_icons/qq/qq_90.png pidgin/pixmaps/buddy_icons/qq/qq_91.png pidgin/pixmaps/buddy_icons/qq/qq_92.png pidgin/pixmaps/buddy_icons/qq/qq_93.png pidgin/pixmaps/buddy_icons/qq/qq_94.png pidgin/pixmaps/buddy_icons/qq/qq_95.png pidgin/pixmaps/buddy_icons/qq/qq_96.png pidgin/pixmaps/buddy_icons/qq/qq_97.png pidgin/pixmaps/buddy_icons/qq/qq_98.png pidgin/pixmaps/buddy_icons/qq/qq_99.png
diffstat 1 files changed, 10 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/soap.c	Sat Aug 30 02:30:04 2008 +0000
+++ b/libpurple/protocols/msn/soap.c	Sat Aug 30 03:43:05 2008 +0000
@@ -268,6 +268,7 @@
 		(something weird with the login.live.com server). With NSS it works
 		fine, so I believe it's some bug with OS X */ 
 	char buf[16 * 1024];
+	gsize cursor;
 
 	if (conn->message == NULL) {
 		conn->message = msn_soap_message_new(NULL, NULL);
@@ -276,12 +277,20 @@
 	if (conn->buf == NULL) {
 		conn->buf = g_string_new_len(buf, 0);
 	}
-	
+
+	cursor = conn->buf->len;
 	while ((cnt = purple_ssl_read(conn->ssl, buf, sizeof(buf))) > 0) {
 		purple_debug_info("soap", "read %d bytes\n", cnt);
 		count += cnt;
 		g_string_append_len(conn->buf, buf, cnt);
 	}
+#ifndef MSN_UNSAFE_DEBUG
+	if (conn->current_request->secure)
+		purple_debug_misc("soap", "Received secure request.\n");
+	else
+#endif
+	if (count != 0)
+		purple_debug_misc("soap", "current %s\n", conn->buf->str + cursor);
 
 	/* && count is necessary for Adium, on OS X the last read always
 	   return an error, so we want to proceed anyway. See #5212 for
@@ -310,13 +319,6 @@
 	char *cursor;
 	char *linebreak;
 
-#ifndef MSN_UNSAFE_DEBUG
-	if (conn->current_request->secure)
-		purple_debug_misc("soap", "Received secure request.\n");
-	else
-#endif
-	purple_debug_misc("soap", "current %s\n", conn->buf->str);
-
 	cursor = conn->buf->str + conn->handled_len;
 
 	if (!conn->headers_done) {