mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-27 11:54:44 +08:00
[warnings] fixed -Wformat
This commit is contained in:
parent
879e68c02b
commit
678b392e89
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user