[core,capabilities] ensure ImeFileName is '\0' terminated

This commit is contained in:
Armin Novak 2024-04-25 09:49:49 +02:00 committed by akallabeth
parent e37acf08b5
commit e9bfd585ae
1 changed files with 1 additions and 1 deletions

View File

@ -1414,7 +1414,7 @@ static BOOL rdp_read_input_capability_set(wStream* s, rdpSettings* settings)
if (ConvertWCharNToUtf8(wstr, ARRAYSIZE(wstr), str, ARRAYSIZE(str)) < 0)
memset(str, 0, sizeof(str));
if (!freerdp_settings_set_string(settings, FreeRDP_ImeFileName, str))
if (!freerdp_settings_set_string_len(settings, FreeRDP_ImeFileName, str, ARRAYSIZE(str)))
return FALSE;
}