mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed copy of opaque data
do not use strcncpy for opaque data.
This commit is contained in:
@@ -877,7 +877,7 @@ BOOL freerdp_client_populate_rdp_file_from_settings(rdpFile* file, const rdpSett
|
||||
file->LoadBalanceInfo = calloc(settings->LoadBalanceInfoLength + 1, 1);
|
||||
if (!file->LoadBalanceInfo)
|
||||
return FALSE;
|
||||
strncpy(file->LoadBalanceInfo, settings->LoadBalanceInfo, settings->LoadBalanceInfoLength);
|
||||
memcpy(file->LoadBalanceInfo, settings->LoadBalanceInfo, settings->LoadBalanceInfoLength);
|
||||
}
|
||||
|
||||
if (settings->AudioPlayback)
|
||||
|
||||
Reference in New Issue
Block a user