mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
parse_nmap_service_probe_file may not be static, some changes to osscan.cc for more verbose scripts/fingerdiff support
This commit is contained in:
parent
e3a4b7294c
commit
d7ee3ebfa7
5 changed files with 29 additions and 15 deletions
4
utils.cc
4
utils.cc
|
|
@ -725,9 +725,11 @@ static inline char* STRAPP(char *fmt, ...) {
|
|||
bp = 0;
|
||||
return(buf);
|
||||
}
|
||||
if (left <= 0)
|
||||
return buf;
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
bp += vsnprintf (buf+bp, (left>0 ? left : 0), fmt, ap);
|
||||
bp += vsnprintf (buf+bp, left, fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
return(buf);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue