mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 00:49:01 +00:00
fix to my previous out of buffer space fix
This commit is contained in:
@@ -675,7 +675,7 @@ char* xml_convert (const char* str) {
|
||||
va_start() AND va_end() calls. */
|
||||
void log_vwrite(int logt, const char *fmt, va_list ap) {
|
||||
static char *writebuf = NULL;
|
||||
int writebuflen = 8192;
|
||||
static int writebuflen = 8192;
|
||||
bool skid_noxlate = false;
|
||||
int rc = 0;
|
||||
int len;
|
||||
@@ -684,10 +684,6 @@ void log_vwrite(int logt, const char *fmt, va_list ap) {
|
||||
va_list apcopy;
|
||||
|
||||
|
||||
/* Account for extended output under high debugging/verbosity */
|
||||
if (o.debugging > 2 || o.verbose > 2)
|
||||
writebuflen *= 8;
|
||||
|
||||
if (!writebuf)
|
||||
writebuf = (char *) safe_malloc(writebuflen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user