mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
62d7e3ed87
commit
a788bd1a46
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue