From 9bfaeb5390579becb35a7a5b03610e7c958bd989 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 4 Jan 2020 21:48:52 +0000 Subject: [PATCH] Apply some more missing constants --- src/SelStage.cpp | 2 +- src/TextScr.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SelStage.cpp b/src/SelStage.cpp index 0d176fc4..eb61b752 100644 --- a/src/SelStage.cpp +++ b/src/SelStage.cpp @@ -155,7 +155,7 @@ void PutStageSelectObject(void) int StageSelectLoop(int *p_event) { - char old_script_path[260]; + char old_script_path[MAX_PATH]; RECT rcView = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT}; diff --git a/src/TextScr.cpp b/src/TextScr.cpp index d4932d32..198685bd 100644 --- a/src/TextScr.cpp +++ b/src/TextScr.cpp @@ -120,7 +120,7 @@ void EncryptionBinaryData2(unsigned char *pData, long size) BOOL LoadTextScript2(const char *name) { // Get path - char path[260]; + char path[MAX_PATH]; sprintf(path, "%s\\%s", gDataPath, name); gTS.size = GetFileSizeLong(path);