From 32ed5fe4ae89f8fdf188cb0219fdd3ac3dbea344 Mon Sep 17 00:00:00 2001 From: James R Date: Tue, 4 Apr 2023 22:04:09 -0700 Subject: [PATCH] Newsnapshotfile: increase array size to fit webm extension --- src/m_misc.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/m_misc.cpp b/src/m_misc.cpp index a8c6ccf0c..c6f23a056 100644 --- a/src/m_misc.cpp +++ b/src/m_misc.cpp @@ -782,12 +782,13 @@ static void M_CreateScreenShotPalette(void) #if NUMSCREENS > 2 static const char *Newsnapshotfile(const char *pathname, const char *ext) { - static char freename[19] = "ringracersXXXX.ext"; + static char freename[20] = "ringracersXXXX.exte"; int i = 5000; // start in the middle: num screenshots divided by 2 int add = i; // how much to add or subtract if wrong; gets divided by 2 each time int result; // -1 = guess too high, 0 = correct, 1 = guess too low // find a file name to save it to + I_Assert(strlen(ext) < (sizeof freename) - 15); strcpy(freename+15,ext); for (;;)