mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +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);
|
addItem(row, column, copy, item, itemlen);
|
||||||
|
|
||||||
maxColLen[column] = mc;
|
if(fullrow) {
|
||||||
cell = getCellAddy(row, column);
|
maxColLen[column] = mc;
|
||||||
cell->fullrow = fullrow;
|
cell = getCellAddy(row, column);
|
||||||
|
cell->fullrow = fullrow;
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,9 +207,11 @@ void NmapOutputTable::addItemFormatted(unsigned int row,
|
|||||||
|
|
||||||
addItem(row, column, fullrow, true, buf, res);
|
addItem(row, column, fullrow, true, buf, res);
|
||||||
|
|
||||||
maxColLen[column] = mc;
|
if(fullrow) {
|
||||||
cell = getCellAddy(row, column);
|
maxColLen[column] = mc;
|
||||||
cell->fullrow = fullrow;
|
cell = getCellAddy(row, column);
|
||||||
|
cell->fullrow = fullrow;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Returns the maximum size neccessary to create a printableTable() (the
|
// Returns the maximum size neccessary to create a printableTable() (the
|
||||||
|
|||||||
Reference in New Issue
Block a user