changeset 1645:2ca7329ee519

[gaim-migrate @ 1655] neat. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sun, 25 Mar 2001 02:51:57 +0000
parents fb1741bc3bd0
children f1a019d30e01
files plugins/yay/rxhandlers.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);