shithub: cstory

Download patch

ref: b062d8af5b4c11dc2eaa551a1391ff57f77e4174
parent: cb730ff9d73bd5f17f3e14fd4a1b58ca18a06e8e
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue May 7 12:47:17 EDT 2019

Add a missing PATH_LENGTH

--- a/src/Map.cpp
+++ b/src/Map.cpp
@@ -81,7 +81,7 @@
 BOOL LoadAttributeData(const char *path_atrb)
 {
 	//Open file
-	char path[260];
+	char path[PATH_LENGTH];
 	sprintf(path, "%s/%s", gDataPath, path_atrb);
 
 	FILE *fp = fopen(path, "rb");