fix [cmdline]: parameter parsing

use strtoul instead of strtol
This commit is contained in:
Bernhard Miklautz
2018-11-08 11:13:57 +01:00
parent 1222e7060b
commit 8be6ec9720

View File

@@ -2092,7 +2092,7 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
}
CommandLineSwitchCase(arg, "compression-level")
{
unsigned long val = strtol(arg->Value, NULL, 0);
unsigned long val = strtoul(arg->Value, NULL, 0);
if ((errno != 0) || (val > UINT32_MAX))
return COMMAND_LINE_ERROR_UNEXPECTED_VALUE;