Fix assertion failures

This commit is contained in:
ehouse 2009-07-31 13:03:05 +00:00
parent 47d6d53419
commit fbd3559e3b
2 changed files with 5 additions and 1 deletions

View file

@ -894,6 +894,10 @@ curses_socket_changed( void* closure, int oldSock, int newSock,
if ( newSock != -1 ) {
cursesListenOnSocket( globals, newSock );
}
#ifdef XWFEATURE_RELAY
globals->cGlobals.socket = newSock;
#endif
} /* curses_socket_changed */
static void

View file

@ -113,7 +113,7 @@ writeToFile( XWStreamCtxt* stream, void* closure )
stream_getBytes( stream, buf, len );
file = fopen( cGlobals->params->fileName, "w" );
if ( 1 != fwrite( buf, 1, len, file ) ) {
if ( 1 != fwrite( buf, len, 1, file ) ) {
XP_ASSERT( 0 );
}
fclose( file );