projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2b5c31
)
fixed potential buffer overflow bug
author
Holger Schemel
<info@artsoft.org>
Wed, 22 Sep 2021 19:35:12 +0000
(21:35 +0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 22 Sep 2021 19:35:12 +0000
(21:35 +0200)
src/libgame/setup.c
patch
|
blob
|
history
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);