mirror of
https://github.com/nmap/nmap.git
synced 2026-01-20 13:19:01 +00:00
fix a typo/compilation problem
This commit is contained in:
@@ -277,10 +277,8 @@ char* Port::cstringSanityCheck(const char* string, int len) {
|
||||
result = (char *) safe_malloc(slen + 1);
|
||||
memcpy(result, string, slen);
|
||||
result[slen] = '\0';
|
||||
replacenonprintable(result, strlen(result), '.');
|
||||
}
|
||||
|
||||
return result;
|
||||
replacenonprintable(result, slen, '.');
|
||||
return result;
|
||||
}
|
||||
|
||||
void Port::setServiceProbeResults(enum serviceprobestate sres,
|
||||
|
||||
Reference in New Issue
Block a user