plugins/yay/rxhandlers.c

changeset 1645
d56c7f707a9e
parent 1616
974b2c994298
child 1680
7d769eb68138
--- a/plugins/yay/rxhandlers.c	Sat Mar 24 11:23:22 2001 +0000
+++ b/plugins/yay/rxhandlers.c	Sun Mar 25 02:51:57 2001 +0000
@@ -358,9 +358,12 @@
 	} else if (conn->type == YAHOO_CONN_TYPE_PROXY) {
 		char *buf = g_malloc0(5000);
 		int nlc = 0;
-		while ((nlc != 2) && (read(socket, &buf[pos++], 1) == 1))
+		while ((nlc != 2) && (read(socket, &buf[pos++], 1) == 1)) {
 			if (buf[pos-1] == '\n')
 				nlc++;
+			else if (buf[pos-1] != '\r')
+				nlc = 0;
+		}
 		if (pos == 1) {
 			g_free(buf);
 			yahoo_close(session, conn);

mercurial