# HG changeset patch # User Jeffrey Connelly # Date 1183331558 0 # Node ID d43314277ccc3e1d22cf2e1bababcf6e2b11f1dd # Parent c5645d80aedc10ac9431754aba7791fb80ffd1bc Remove check in msim_input_cb() for embedded nulls. May be causing #1990. diff -r c5645d80aedc -r d43314277ccc libpurple/protocols/myspace/myspace.c --- 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);