mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
fixed wrong alignment of nmap output table when using --iflist
This commit is contained in:
parent
84340f5737
commit
d11ceade1a
1 changed files with 10 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue