Commit 2c649fb4 authored by Rémi Duraffort's avatar Rémi Duraffort

freetype: simplifications.

parent da9e9a60
...@@ -356,14 +356,11 @@ static int Create( vlc_object_t *p_this ) ...@@ -356,14 +356,11 @@ static int Create( vlc_object_t *p_this )
#ifdef HAVE_STYLES #ifdef HAVE_STYLES
psz_fontfamily = strdup( DEFAULT_FAMILY ); psz_fontfamily = strdup( DEFAULT_FAMILY );
#else #else
psz_fontfamily = (char *)malloc( PATH_MAX + 1 );
if( !psz_fontfamily )
goto error;
# ifdef WIN32 # ifdef WIN32
strcat( psz_fontfamily, p_sys->psz_win_fonts_path ); if( asprintf( &psz_fontfamily, "%s%s", p_sys->psz_win_fonts_path, DEFAULT_FONT ) == -1 )
strcat( psz_fontfamily, DEFAULT_FONT ); goto error;
# else # else
strcpy( psz_fontfamily, DEFAULT_FONT ); psz_fontfamily = strdup( DEFAULT_FONT );
# endif # endif
msg_Err( p_filter,"User specified an empty fontfile, using %s", psz_fontfamily ); msg_Err( p_filter,"User specified an empty fontfile, using %s", psz_fontfamily );
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment