Merge pull request #3065 from YJSoft/fix-xp-ttf-load

Fix windows xp ttf font loading problem
This commit is contained in:
Ted John 2016-03-01 17:47:56 +00:00
commit 795bc0d471
2 changed files with 2 additions and 1 deletions

View File

@ -57,6 +57,7 @@ Includes all git commit authors. Aliases are GitHub user names.
* Michael Pham (nightroan)
* Hielke Morsink (Broxzier)
* Lucas Riutzel (jackinloadup)
* Youngjae Yu (YJSoft)
## Toolchain
* (Balletie) - OSX

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