1
0
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:
diman
2007-01-07 23:21:56 +00:00
parent 84340f5737
commit d11ceade1a

View File

@@ -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