mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
hostexp[i] is a nicer way to write *(hostexp + i).
This commit is contained in:
parent
d8dc00e0ed
commit
bfead6f4b7
1 changed files with 3 additions and 3 deletions
|
|
@ -166,9 +166,9 @@ int TargetGroup::parse_expr(const char *target_expr, int af) {
|
|||
} else
|
||||
netmask = 32;
|
||||
resolvedname = hostexp;
|
||||
for(i=0; *(hostexp + i); i++)
|
||||
if (isupper((int) (unsigned char) *(hostexp +i)) ||
|
||||
islower((int) (unsigned char) *(hostexp +i))) {
|
||||
for(i=0; hostexp[i] != '\0'; i++)
|
||||
if (isupper((int) (unsigned char) hostexp[i]) ||
|
||||
islower((int) (unsigned char) hostexp[i])) {
|
||||
namedhost = 1;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue