# HG changeset patch # User Eric Warmenhoven # Date 985488717 0 # Node ID 2ca7329ee519e7b356d3d981a2708e07df6d1f98 # Parent fb1741bc3bd00ec3685265f7988acdc32ff7c1dc [gaim-migrate @ 1655] neat. committer: Tailor Script diff -r fb1741bc3bd0 -r 2ca7329ee519 plugins/yay/rxhandlers.c --- 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);