From 4ce326879a1a3790f53573b9d5c2578793c72682 Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Tue, 20 Dec 2016 09:24:16 -0800 Subject: [PATCH] Fix theme path resolution. --- source/core/screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/screen.c b/source/core/screen.c index 66f58d3..96729d3 100644 --- a/source/core/screen.c +++ b/source/core/screen.c @@ -53,7 +53,7 @@ static struct { static C3D_Tex* glyphSheets; static FILE* screen_open_resource(const char* path) { - u32 realPathSize = strlen(path) + 16; + u32 realPathSize = strlen(path) + 17; char realPath[realPathSize]; snprintf(realPath, realPathSize, "sdmc:/fbi/theme/%s", path); @@ -751,4 +751,4 @@ void screen_draw_string(const char* text, float x, float y, float scaleX, float void screen_draw_string_wrap(const char* text, float x, float y, float scaleX, float scaleY, u32 colorId, bool centerLines, float wrapX) { screen_draw_string_internal(text, x, y, scaleX, scaleY, colorId, centerLines, true, wrapX); -} \ No newline at end of file +}