mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Corrects a few issues related to snprintf return values
This commit is contained in:
@@ -233,7 +233,7 @@ void NmapOutputTable::addItemFormatted(unsigned int row,
|
||||
res = Vsnprintf(buf, sizeof(buf), fmt, ap);
|
||||
va_end(ap);
|
||||
|
||||
if (res > sizeof(buf))
|
||||
if (res >= sizeof(buf))
|
||||
fatal("NmapOutputTable only supports adding up to 4096 to a cell via %s.", __func__);
|
||||
|
||||
addItem(row, column, fullrow, true, buf, res);
|
||||
|
||||
Reference in New Issue
Block a user