Mercurial > pidgin.yaz
changeset 17915:d43314277ccc
Remove check in msim_input_cb() for embedded nulls. May be causing #1990.
author | Jeffrey Connelly <jaconnel@calpoly.edu> |
---|---|
date | Sun, 01 Jul 2007 23:12:38 +0000 |
parents | c5645d80aedc |
children | d125c3562280 |
files | libpurple/protocols/myspace/myspace.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/myspace/myspace.c Sun Jul 01 03:30:34 2007 +0000 +++ b/libpurple/protocols/myspace/myspace.c Sun Jul 01 23:12:38 2007 +0000 @@ -2140,6 +2140,7 @@ /* Null terminate */ session->rxbuf[session->rxoff + n] = 0; +#ifdef MSIM_CHECK_EMBEDDED_NULLS /* Check for embedded NULs. I don't handle them, and they shouldn't occur. */ if (strlen(session->rxbuf + session->rxoff) != n) { @@ -2150,6 +2151,7 @@ //purple_connection_error(gc, "Invalid message - null byte on input"); return; } +#endif session->rxoff += n; purple_debug_info("msim", "msim_input_cb: read=%d\n", n);