From f67684b31a68606d89318216657d58e4382849d4 Mon Sep 17 00:00:00 2001 From: Indev Date: Sat, 5 Aug 2023 14:41:52 +0300 Subject: [PATCH 1/2] Fix ban.txt crash --- src/d_clisrv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/d_clisrv.c b/src/d_clisrv.c index adceff581..775034fa8 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -2909,6 +2909,12 @@ void D_LoadBan(boolean warning) address = strtok(buffer, " /\t\r\n"); mask = strtok(NULL, " \t\r\n"); + if (!address) + { + malformed = true; + continue; + } + if (i == 0 && !strncmp(address, "BANFORMAT", 9)) { if (mask) -- 2.54.0 From 63f0d15fbf081efb275213e186b4674f4b5ac90b Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Sat, 5 Aug 2023 13:52:41 +0200 Subject: [PATCH 2/2] Lets make it v7 so much shit was added since initial v6 so lets just go straight to v7 c: --- src/doomdef.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doomdef.h b/src/doomdef.h index 43048ae00..09d00aba8 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -149,8 +149,8 @@ extern char logfilename[1024]; #else #define VERSION 1 // Game version #define SUBVERSION 6 // more precise version number -#define VERSIONSTRING "Saturn v6.0 " -#define VERSIONSTRINGW L"Saturn v6.0" +#define VERSIONSTRING "Saturn v7.0 " +#define VERSIONSTRINGW L"Saturn v7.0" // Hey! If you change this, add 1 to the MODVERSION below! Otherwise we can't force updates! // And change CMakeLists.txt (not src/, but in root), for CMake users! // AND appveyor.yml, for the build bots! -- 2.54.0