mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-11-16 07:48:07 +01:00
use _vsnprintf to fix buffer overflow
This commit is contained in:
parent
f474ff3ba6
commit
ea9e897407
1 changed files with 2 additions and 3 deletions
|
@ -851,8 +851,7 @@ ceCountsAndValues( CEAppGlobals* globals )
|
|||
if ( !!globals->game.server ) {
|
||||
XWStreamCtxt* stream = make_generic_stream( globals );
|
||||
|
||||
server_formatDictCounts( globals->game.server, stream,
|
||||
3 ); /* 2: ncols */
|
||||
server_formatDictCounts( globals->game.server, stream, 3 );
|
||||
|
||||
(void)ceMsgFromStream( globals, stream, L"Tile Counts and Values",
|
||||
XP_FALSE, XP_TRUE );
|
||||
|
@ -1695,7 +1694,7 @@ wince_snprintf( XP_UCHAR* buf, XP_U16 len, XP_UCHAR* format, ... )
|
|||
|
||||
va_start( ap, format );
|
||||
|
||||
vsprintf( buf, format, ap );
|
||||
_vsnprintf( buf, len, format, ap );
|
||||
|
||||
/* FormatMessage( */
|
||||
/* FORMAT_MESSAGE_FROM_STRING, */
|
||||
|
|
Loading…
Reference in a new issue