projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
security fix: replaced sprintf with snprintf
[xboard.git]
/
gamelist.c
diff --git
a/gamelist.c
b/gamelist.c
index
07619f2
..
028b961
100644
(file)
--- a/
gamelist.c
+++ b/
gamelist.c
@@
-435,7
+435,7
@@
char * GameListLine( int number, GameInfo * gameInfo )
break;
case GLT_WHITE_ELO:
if( gameInfo->whiteRating > 0 )
- sprintf( buf, "%d", gameInfo->whiteRating );
+ sprintf( buf, "%d", gameInfo->whiteRating );
else
safeStrCpy( buf, "?" , 2*MSG_SIZ);
break;