mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-26 09:58:20 +01:00
Fix assertion failures
This commit is contained in:
parent
47d6d53419
commit
fbd3559e3b
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue