Partially fix #537 (two fixes make one)

This commit is contained in:
d0k3 2019-09-29 21:06:57 +02:00 committed by Wolfvak
parent 47312797e2
commit 85c43795c3

View File

@ -814,7 +814,7 @@ bool ShowInputPrompt(char* inputstr, u32 max_size, u32 resize, const char* alpha
memset(inputstr, alphabet[0], inputstr_size);
if (resize) {
cursor_s = 0;
inputstr[1] = '\0';
inputstr[resize] = '\0';
}
} else if (pad_state & BUTTON_X) {
if (resize && (inputstr_size > resize)) {