projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fixed potential buffer overflow bug
[rocksndiamonds.git]
/
src
/
libgame
/
setup.c
diff --git
a/src/libgame/setup.c
b/src/libgame/setup.c
index 6c5250286d5b11e06b1e4342fc2bd55fa5ce0569..0a406540224696e012e1243fe9944407a62a4863 100644
(file)
--- a/
src/libgame/setup.c
+++ b/
src/libgame/setup.c
@@
-4848,7
+4848,7
@@
static void SaveLevelSetup_LastSeries_Ext(boolean deactivate_last_level_series)
for (i = 0; last_level_series[i] != NULL; i++)
{
- char token[strlen(TOKEN_STR_LAST_LEVEL_SERIES) + 1
0
];
+ char token[strlen(TOKEN_STR_LAST_LEVEL_SERIES) + 1
+ 10 + 1
];
sprintf(token, "%s.%03d", TOKEN_STR_LAST_LEVEL_SERIES, i);