# HG changeset patch # User Mark Doliner # Date 1246865172 0 # Node ID 1bbed9fd046bd407205160ebd0c35a1d86cb0b9c # Parent c4e5ba03ff73e39e0c5c213981407fda852b9e39 I think we can assume that read() isn't going to read more than we tell it to diff -r c4e5ba03ff73 -r 1bbed9fd046b libpurple/protocols/myspace/myspace.c --- a/libpurple/protocols/myspace/myspace.c Mon Jul 06 06:03:20 2009 +0000 +++ b/libpurple/protocols/myspace/myspace.c Mon Jul 06 07:26:12 2009 +0000 @@ -2087,15 +2087,6 @@ return; } - if (n + session->rxoff > session->rxsize) { - purple_debug_info("msim_input_cb", "received %d bytes, pushing rxoff to %d, over buffer size of %d\n", - n, n + session->rxoff, session->rxsize); - purple_connection_error_reason (gc, - PURPLE_CONNECTION_ERROR_NETWORK_ERROR, - _("Read buffer full (2)")); - return; - } - /* Null terminate */ purple_debug_info("msim", "msim_input_cb: going to null terminate " "at n=%d\n", n);