]> git.sesse.net Git - vlc/blobdiff - modules/text_renderer/freetype.c
freetype: use MAXPATHLEN instead of 1024 for ATS font file lookup
[vlc] / modules / text_renderer / freetype.c
index 19e2baa29ecfe8f26c15b2ef8d8a9ebd5aa81c5e..a7c7afd30030b26837a78722bbab8eb2d78c99aa 100644 (file)
@@ -81,6 +81,7 @@
 /* apple stuff */
 #ifdef __APPLE__
 #include <Carbon/Carbon.h>
+#include <sys/param.h>                         /* for MAXPATHLEN */
 #undef HAVE_FONTCONFIG
 #define HAVE_STYLES
 #endif
@@ -713,7 +714,7 @@ static char* MacLegacy_Select( filter_t *p_filter, const char* psz_fontname,
     VLC_UNUSED( b_italic );
     VLC_UNUSED( i_size );
     FSRef ref;
-    unsigned char path[1024];
+    unsigned char path[MAXPATHLEN];
     char * psz_path;
 
     CFStringRef  cf_fontName;