diff --git a/src/SelStage.cpp b/src/SelStage.cpp index 56a0254d..9a41c602 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 2c50278c..e2228355 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);