Mercurial > pidgin
comparison libpurple/protocols/myspace/myspace.c @ 27380:1bbed9fd046b
I think we can assume that read() isn't going to read more than
we tell it to
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 06 Jul 2009 07:26:12 +0000 |
parents | 8cb0f676c70d |
children | f541583e31bd |
comparison
equal
deleted
inserted
replaced
27379:c4e5ba03ff73 | 27380:1bbed9fd046b |
---|---|
2082 } else if (n == 0) { | 2082 } else if (n == 0) { |
2083 purple_debug_info("msim", "msim_input_cb: server disconnected\n"); | 2083 purple_debug_info("msim", "msim_input_cb: server disconnected\n"); |
2084 purple_connection_error_reason (gc, | 2084 purple_connection_error_reason (gc, |
2085 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | 2085 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
2086 _("Server has disconnected")); | 2086 _("Server has disconnected")); |
2087 return; | |
2088 } | |
2089 | |
2090 if (n + session->rxoff > session->rxsize) { | |
2091 purple_debug_info("msim_input_cb", "received %d bytes, pushing rxoff to %d, over buffer size of %d\n", | |
2092 n, n + session->rxoff, session->rxsize); | |
2093 purple_connection_error_reason (gc, | |
2094 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, | |
2095 _("Read buffer full (2)")); | |
2096 return; | 2087 return; |
2097 } | 2088 } |
2098 | 2089 |
2099 /* Null terminate */ | 2090 /* Null terminate */ |
2100 purple_debug_info("msim", "msim_input_cb: going to null terminate " | 2091 purple_debug_info("msim", "msim_input_cb: going to null terminate " |