From cee035c9cb010b82c74a468abbc7a9031ab100a2 Mon Sep 17 00:00:00 2001 From: YJSoft Date: Wed, 2 Mar 2016 00:32:28 +0900 Subject: [PATCH] fix windows xp font loading problem no need to cat because Fonts path must start with `C:\` --- src/platform/windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/windows.c b/src/platform/windows.c index c803c31d08..5bc081df8d 100644 --- a/src/platform/windows.c +++ b/src/platform/windows.c @@ -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