1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00

Fixed typos with vsnprintf (was vnsprintf).

This commit is contained in:
ithilgore
2009-06-28 17:33:35 +00:00
parent 8642daf7c9
commit aca370f88d
2 changed files with 3 additions and 3 deletions

View File

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