mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-27 03:44:06 +08:00
[core,capabilities] ensure ImeFileName is '\0' terminated
This commit is contained in:
parent
e37acf08b5
commit
e9bfd585ae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user