From f2876b2a6131e09798da83847eff970b59570752 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Tue, 13 Oct 2020 15:21:58 +0200 Subject: [PATCH] Fix #628 --- arm9/source/common/swkbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/common/swkbd.c b/arm9/source/common/swkbd.c index 4fdfec2..9946203 100644 --- a/arm9/source/common/swkbd.c +++ b/arm9/source/common/swkbd.c @@ -136,7 +136,7 @@ static void DrawTextBox(const TouchBox* txtbox, const char* inputstr, const u32 (*scroll) ? '<' : '|', (inputstr_size > input_shown) ? input_shown : inputstr_size, (inputstr_size > input_shown) ? input_shown : inputstr_size, - inputstr + *scroll, + (*scroll > inputstr_size) ? "" : inputstr + *scroll, (inputstr_size > input_shown) ? 0 : input_shown - inputstr_size, (inputstr_size > input_shown) ? 0 : input_shown - inputstr_size, "",