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:
fyodor 2006-09-12 03:35:29 +00:00
parent e3a4b7294c
commit d7ee3ebfa7
5 changed files with 29 additions and 15 deletions

View file

@ -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);