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);