fix windows xp font loading problem

no need to cat because Fonts path must start with `C:\`
This commit is contained in:
YJSoft committed 2016-03-02 00:32:28 +09:00
1 parent ce779cb4c1
commit cee035c9cb
1 file changed
+1 -1
+1 -1
View File
@@ -957,7 +957,7 @@ bool platform_get_font_path(TTFFontDescriptor *font, utf8 *buffer)
}
#else
log_warning("Compatibility hack: falling back to C:\\Windows\\Fonts");
strcat(buffer, "C:\\Windows\\Fonts\\");
strcpy(buffer, "C:\\Windows\\Fonts\\");
strcat(buffer, font->filename);
return true;
#endif