mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Nmap 3.98BETA1
This commit is contained in:
parent
3ed6bb8785
commit
76acd0a496
20 changed files with 192 additions and 1825 deletions
8
utils.cc
8
utils.cc
|
|
@ -215,9 +215,11 @@ char *chomp(char *string) {
|
|||
considered to be the same), nonzero otherwise. */
|
||||
int optcmp(const char *a, const char *b) {
|
||||
while(*a && *b) {
|
||||
if ((*a == '_' || *a == '-') && (*b != '_' && *b != '-'))
|
||||
return 1;
|
||||
if (*a != *b)
|
||||
if (*a == '_' || *a == '-') {
|
||||
if (*b != '_' && *b != '-')
|
||||
return 1;
|
||||
}
|
||||
else if (*a != *b)
|
||||
return 1;
|
||||
a++; b++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue