[warnings] fixed -Wformat

This commit is contained in:
Armin Novak 2023-12-13 10:29:07 +01:00 committed by akallabeth
parent 879e68c02b
commit 678b392e89

View File

@ -242,10 +242,10 @@ static BOOL check_no_proxy(rdpSettings* settings, const char* no_proxy)
if (rangedelim != NULL)
{
const char* range = rangedelim + 1;
int sub;
unsigned sub = 0;
int rc = sscanf(range, "%u", &sub);
if ((rc == 1) && (rc >= 0))
if ((rc == 1) && (rc >= 0) && (sub <= UINT8_MAX))
{
*rangedelim = '\0';