From abe57fefa01d60aff49cd1e0182e549a8c1bbc8d Mon Sep 17 00:00:00 2001 From: withmorten Date: Wed, 30 Jun 2021 16:28:07 +0200 Subject: fix some string sizes to be MAX_PATH --- src/save/PCSave.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/save/PCSave.cpp') diff --git a/src/save/PCSave.cpp b/src/save/PCSave.cpp index 70ca31d2..c9045705 100644 --- a/src/save/PCSave.cpp +++ b/src/save/PCSave.cpp @@ -25,7 +25,11 @@ C_PcSave::SetSaveDirectory(const char *path) bool C_PcSave::DeleteSlot(int32 slot) { +#ifdef FIX_BUGS + char FileName[MAX_PATH]; +#else char FileName[200]; +#endif PcSaveHelper.nErrorCode = SAVESTATUS_SUCCESSFUL; sprintf(FileName, "%s%i.b", DefaultPCSaveFileName, slot + 1); -- cgit v1.2.3