Skip to content

Commit

Permalink
* tests/issue-1063/main.c: s/PATH_MAX/FILENAME_MAX/.
Browse files Browse the repository at this point in the history
Closes !97 for Windows by using a standard macro.
  • Loading branch information
apodtele committed Oct 20, 2021
1 parent 8ef8072 commit e990c33
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/issue-1063/main.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <limits.h>
#include <stdio.h>

#include <freetype/freetype.h>
Expand All @@ -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",
Expand Down

0 comments on commit e990c33

Please sign in to comment.