mirror of
https://github.com/nmap/nmap.git
synced 2026-06-27 03:33:07 +00:00
Fixed typos with vsnprintf (was vnsprintf).
This commit is contained in:
parent
8642daf7c9
commit
aca370f88d
2 changed files with 3 additions and 3 deletions
|
|
@ -2280,7 +2280,7 @@ o The zoneTrans.nse script now takes a "domain" script argument to
|
|||
scope down with the form "zoneTrans={domain=xxx}". [Kris]
|
||||
|
||||
o Increase write buffer length for Nmap output on Windows. This should
|
||||
prevent error messages like: "log_vwrite: vnsprintf failed. Even
|
||||
prevent error messages like: "log_vwrite: vsnprintf failed. Even
|
||||
after increasing bufferlen to 819200, Vsnprintf returned -1 (logt ==
|
||||
1)." Thanks to prozente0 for the report. [Fyodor]
|
||||
|
||||
|
|
|
|||
|
|
@ -1033,7 +1033,7 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
|||
#ifdef WIN32
|
||||
apcopy = ap;
|
||||
#else
|
||||
va_copy(apcopy, ap); /* Needed in case we need to so a second vnsprintf */
|
||||
va_copy(apcopy, ap); /* Needed in case we need to so a second vsnprintf */
|
||||
#endif
|
||||
l = logt;
|
||||
fileidx = 0;
|
||||
|
|
@ -1057,7 +1057,7 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
|||
writebuf = (char *) safe_realloc(writebuf, writebuflen);
|
||||
len = Vsnprintf(writebuf, writebuflen, fmt, apcopy);
|
||||
if (len <= 0 || len >= writebuflen) {
|
||||
fatal("%s: vnsprintf failed. Even after increasing bufferlen to %d, Vsnprintf returned %d (logt == %d). Please email this message to fyodor@insecure.org. Quitting.", __func__, writebuflen, len, logt);
|
||||
fatal("%s: vsnprintf failed. Even after increasing bufferlen to %d, Vsnprintf returned %d (logt == %d). Please email this message to fyodor@insecure.org. Quitting.", __func__, writebuflen, len, logt);
|
||||
}
|
||||
}
|
||||
if (logt == LOG_SKID && !skid_noxlate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue