1
0
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:
fyodor
2006-08-22 23:09:10 +00:00
parent 29b1d58389
commit 1a50feefd3

View File

@@ -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,