mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 08:54:38 +09:00
Fixed printf format
This commit is contained in:
@@ -901,7 +901,7 @@ BOOL freerdp_client_populate_rdp_file_from_settings(rdpFile* file, const rdpSett
|
||||
file->GatewayHostname = _strdup(settings->GatewayHostname);
|
||||
else
|
||||
{
|
||||
int length = _scprintf("%s:%" PRIu16, settings->GatewayHostname, settings->GatewayPort);
|
||||
int length = _scprintf("%s:%" PRIu32, settings->GatewayHostname, settings->GatewayPort);
|
||||
if (length < 0)
|
||||
return FALSE;
|
||||
|
||||
@@ -909,7 +909,7 @@ BOOL freerdp_client_populate_rdp_file_from_settings(rdpFile* file, const rdpSett
|
||||
if (!file->GatewayHostname)
|
||||
return FALSE;
|
||||
|
||||
if (sprintf_s(file->GatewayHostname, (size_t)length + 1, "%s:%" PRIu16,
|
||||
if (sprintf_s(file->GatewayHostname, (size_t)length + 1, "%s:%" PRIu32,
|
||||
settings->GatewayHostname, settings->GatewayPort) < 0)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user