Fix default text encoding max size

This commit is contained in:
Lander Gallastegi 2024-10-09 17:51:55 +02:00
parent be039a97e2
commit 440fe66cbd

View File

@ -72,7 +72,7 @@ ImeDialogState::ImeDialogState(const OrbisImeDialogParam* param,
}
std::size_t text_len = std::char_traits<char16_t>::length(text_buffer);
if (!ConvertOrbisToUTF8(text_buffer, text_len, current_text, max_text_length)) {
if (!ConvertOrbisToUTF8(text_buffer, text_len, current_text, ORBIS_IME_DIALOG_MAX_TEXT_LENGTH * 4)) {
LOG_ERROR(Lib_ImeDialog, "Failed to convert text to utf8 encoding");
}
}