mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Fixed typos with vsnprintf (was vnsprintf).
This commit is contained in:
@@ -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]
|
scope down with the form "zoneTrans={domain=xxx}". [Kris]
|
||||||
|
|
||||||
o Increase write buffer length for Nmap output on Windows. This should
|
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 ==
|
after increasing bufferlen to 819200, Vsnprintf returned -1 (logt ==
|
||||||
1)." Thanks to prozente0 for the report. [Fyodor]
|
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
|
#ifdef WIN32
|
||||||
apcopy = ap;
|
apcopy = ap;
|
||||||
#else
|
#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
|
#endif
|
||||||
l = logt;
|
l = logt;
|
||||||
fileidx = 0;
|
fileidx = 0;
|
||||||
@@ -1057,7 +1057,7 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
|||||||
writebuf = (char *) safe_realloc(writebuf, writebuflen);
|
writebuf = (char *) safe_realloc(writebuf, writebuflen);
|
||||||
len = Vsnprintf(writebuf, writebuflen, fmt, apcopy);
|
len = Vsnprintf(writebuf, writebuflen, fmt, apcopy);
|
||||||
if (len <= 0 || len >= writebuflen) {
|
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)
|
if (logt == LOG_SKID && !skid_noxlate)
|
||||||
|
|||||||
Reference in New Issue
Block a user