shithub: cstory

Download patch

ref: 9bfaeb5390579becb35a7a5b03610e7c958bd989
parent: 5b4d343df4de53ebf35f77a0e207bc87f3337996
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sat Jan 4 16:48:52 EST 2020

Apply some more missing constants

--- a/src/SelStage.cpp
+++ b/src/SelStage.cpp
@@ -155,7 +155,7 @@
 
 int StageSelectLoop(int *p_event)
 {
-	char old_script_path[260];
+	char old_script_path[MAX_PATH];
 
 	RECT rcView = {0, 0, WINDOW_WIDTH, WINDOW_HEIGHT};
 
--- a/src/TextScr.cpp
+++ b/src/TextScr.cpp
@@ -120,7 +120,7 @@
 BOOL LoadTextScript2(const char *name)
 {
 	// Get path
-	char path[260];
+	char path[MAX_PATH];
 	sprintf(path, "%s\\%s", gDataPath, name);
 
 	gTS.size = GetFileSizeLong(path);