From: Holger Schemel Date: Wed, 22 Sep 2021 19:35:12 +0000 (+0200) Subject: fixed potential buffer overflow bug X-Git-Tag: 4.3.0.0~46 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e8ccf9773b632c21b7739da2c8869b842743ab17;p=rocksndiamonds.git fixed potential buffer overflow bug --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 6c525028..0a406540 100644 --- 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) + 10]; + char token[strlen(TOKEN_STR_LAST_LEVEL_SERIES) + 1 + 10 + 1]; sprintf(token, "%s.%03d", TOKEN_STR_LAST_LEVEL_SERIES, i);