1
0
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:
fyodor
2006-01-21 23:57:49 +00:00
parent 3ed6bb8785
commit 76acd0a496
20 changed files with 192 additions and 1825 deletions

View File

@@ -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++;
}