Mercurial > pidgin
diff plugins/yay/rxhandlers.c @ 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 | 8b684f420841 |
children | b83195b7ab0a |
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);