Commit e990c33f218dc7ca619444e17b0bf5085b4b727c

Alexei Podtelezhnikov 2021-10-20T11:27:03

* tests/issue-1063/main.c: s/PATH_MAX/FILENAME_MAX/. Closes !97 for Windows by using a standard macro.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/tests/issue-1063/main.c b/tests/issue-1063/main.c
index cb06be1..fd5404e 100644
--- a/tests/issue-1063/main.c
+++ b/tests/issue-1063/main.c
@@ -1,4 +1,3 @@
-#include <limits.h>
 #include <stdio.h>
 
 #include <freetype/freetype.h>
@@ -19,7 +18,7 @@ main( void )
    * command-line.
    */
   const char*  testdata_dir = getenv( "FREETYPE_TESTS_DATA_DIR" );
-  char         filepath[PATH_MAX];
+  char         filepath[FILENAME_MAX];
 
 
   snprintf( filepath, sizeof( filepath ), "%s/%s",