]> git.sesse.net Git - vlc/commitdiff
freetype: better simplification (thanks to rem).
authorRémi Duraffort <ivoire@videolan.org>
Sun, 15 May 2011 08:50:03 +0000 (10:50 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 15 May 2011 08:50:03 +0000 (10:50 +0200)
modules/misc/text_renderer/freetype.c

index cf366a36c07939561610ec455bd1ddf77fcd87df..aad1d264457b64fa417257790ad042b093df7472 100644 (file)
@@ -357,7 +357,7 @@ static int Create( vlc_object_t *p_this )
         psz_fontfamily = strdup( DEFAULT_FAMILY );
 #else
 # ifdef WIN32
-        if( asprintf( &psz_fontfamily, "%s%s", p_sys->psz_win_fonts_path, DEFAULT_FONT_FILE ) == -1 )
+        if( asprintf( &psz_fontfamily, "%s"DEFAULT_FONT_FILE, p_sys->psz_win_fonts_path ) == -1 )
             goto error;
 # else
         psz_fontfamily = strdup( DEFAULT_FONT_FILE );