mirror of
https://github.com/nmap/nmap.git
synced 2026-01-02 21:09:00 +00:00
merge soc07 r5322:5360 - fix a problem with RPCGrind time estimates -- the lines sometimes included junk chars on Windows because Windows snprintf doesn't always nul-terminate the strings
This commit is contained in:
@@ -3829,8 +3829,9 @@ void pos_scan(Target *target, u16 *portarray, int numports, stype scantype) {
|
||||
// This initial message is way down here because we don't want to print it if
|
||||
// no RPC ports need scanning.
|
||||
if (!SPM) {
|
||||
char scanname[32];
|
||||
char scanname[48];
|
||||
snprintf(scanname, sizeof(scanname), "%s against %s", scantype2str(scantype), target->NameIP());
|
||||
scanname[sizeof(scanname) - 1] = '\0';
|
||||
SPM = new ScanProgressMeter(scanname);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user