mirror of
https://github.com/nmap/nmap.git
synced 2025-12-27 09:59:04 +00:00
Nmap 3.98BETA1
This commit is contained in:
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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user