Browse code

file: replace PATH_MAX with 4096 to have the same limit everywhere (Windows has the macro set to < 300)

Sigrid Solveig Haflínudóttir authored on 07/11/2021 18:32:48
Showing 1 changed files
... ...
@@ -65,7 +65,7 @@ get_entry(char *p, Uint16 len, const char *pathname, const char *basename, int f
65 65
 static Uint16
66 66
 file_read_dir(void *dest, Uint16 len)
67 67
 {
68
-	static char pathname[PATH_MAX];
68
+	static char pathname[4096];
69 69
 	char *p = dest;
70 70
 	if(de == NULL) de = readdir(d);
71 71
 	for(; de != NULL; de = readdir(d)) {