mirror of
https://github.com/nmap/nmap.git
synced 2026-10-20 10:52:18 +00:00
fix to my previous out of buffer space fix
This commit is contained in:
parent
11d0a44332
commit
1d2069a2bd
1 changed files with 1 additions and 5 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue