mirror of
https://github.com/nmap/nmap.git
synced 2026-08-27 03:48:14 +00:00
Updated uses of the ctype function to support explict casting of the arguments
to (int)(unsigned char).
This commit is contained in:
parent
990db60861
commit
df71e36084
14 changed files with 73 additions and 72 deletions
|
|
@ -583,7 +583,7 @@ static u32 parse_inaddr_arpa(unsigned char *buf, int maxlen) {
|
|||
maxlen -= buf[0] + 1;
|
||||
if (maxlen <= 0) return 0;
|
||||
|
||||
for (j=1; j<=buf[0]; j++) if (!isdigit(buf[j])) return 0;
|
||||
for (j=1; j<=buf[0]; j++) if (!isdigit((int) buf[j])) return 0;
|
||||
|
||||
ip |= atoi((char *) buf+1) << (8*i);
|
||||
buf += buf[0] + 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue