Use Unicode_char_strlcat for unicode padding

This commit is contained in:
Nic Soudée 2022-01-21 16:14:06 -05:00 committed by zoner
parent 25b55ef7f9
commit e5609cc0e2

View File

@ -539,7 +539,7 @@ byte Readline_ex_unicode(word x_pos, word y_pos, char * str, word * str_unicode,
// pad the right side of visible area with spaces to erase any garbage
padding = visible_size - Unicode_strlen(display_string_unicode);
while (padding > 0) {
Unicode_strlcat(display_string_unicode, " ", 1);
Unicode_char_strlcat(display_string_unicode, " ", 1);
padding--;
}