X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Ftext_renderer%2Ffreetype.c;h=a7c7afd30030b26837a78722bbab8eb2d78c99aa;hb=780bc86907509205c3d0335350aeed909a427a2b;hp=19e2baa29ecfe8f26c15b2ef8d8a9ebd5aa81c5e;hpb=9ec6a03f232713abb71f3beb568a90b9db8ec313;p=vlc diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c index 19e2baa29e..a7c7afd300 100644 --- a/modules/text_renderer/freetype.c +++ b/modules/text_renderer/freetype.c @@ -81,6 +81,7 @@ /* apple stuff */ #ifdef __APPLE__ #include +#include /* 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;