Fix format specifier for unsigned int.

This commit is contained in:
Carlos Maddela 2016-12-09 15:42:55 +11:00 committed by rofl0r
parent 6dcaf533d1
commit 4b413c902f

View File

@ -234,7 +234,7 @@ static void get_chain_data(proxy_data * pd, unsigned int *proxy_count, chain_typ
} else if(strstr(buff, "tcp_connect_time_out")) { } else if(strstr(buff, "tcp_connect_time_out")) {
sscanf(buff, "%s %d", user, &tcp_connect_time_out); sscanf(buff, "%s %d", user, &tcp_connect_time_out);
} else if(strstr(buff, "remote_dns_subnet")) { } else if(strstr(buff, "remote_dns_subnet")) {
sscanf(buff, "%s %d", user, &remote_dns_subnet); sscanf(buff, "%s %u", user, &remote_dns_subnet);
if(remote_dns_subnet >= 256) { if(remote_dns_subnet >= 256) {
fprintf(stderr, fprintf(stderr,
"remote_dns_subnet: invalid value. requires a number between 0 and 255.\n"); "remote_dns_subnet: invalid value. requires a number between 0 and 255.\n");