mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 03:03:55 +00:00
fix a typo/compilation problem
This commit is contained in:
parent
29b1d58389
commit
1a50feefd3
1 changed files with 2 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue