mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
fixed wrong alignment of nmap output table when using --iflist
This commit is contained in:
@@ -147,10 +147,11 @@ void NmapOutputTable::addItem(unsigned int row, unsigned int column, bool fullro
|
||||
|
||||
addItem(row, column, copy, item, itemlen);
|
||||
|
||||
maxColLen[column] = mc;
|
||||
cell = getCellAddy(row, column);
|
||||
cell->fullrow = fullrow;
|
||||
|
||||
if(fullrow) {
|
||||
maxColLen[column] = mc;
|
||||
cell = getCellAddy(row, column);
|
||||
cell->fullrow = fullrow;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -206,9 +207,11 @@ void NmapOutputTable::addItemFormatted(unsigned int row,
|
||||
|
||||
addItem(row, column, fullrow, true, buf, res);
|
||||
|
||||
maxColLen[column] = mc;
|
||||
cell = getCellAddy(row, column);
|
||||
cell->fullrow = fullrow;
|
||||
if(fullrow) {
|
||||
maxColLen[column] = mc;
|
||||
cell = getCellAddy(row, column);
|
||||
cell->fullrow = fullrow;
|
||||
}
|
||||
}
|
||||
|
||||
// Returns the maximum size neccessary to create a printableTable() (the
|
||||
|
||||
Reference in New Issue
Block a user