mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
bug fixing
This commit is contained in:
parent
b3923483ea
commit
87e4e19e02
20 changed files with 233 additions and 164 deletions
|
|
@ -136,7 +136,7 @@ NmapOutputTable::~NmapOutputTable() {
|
|||
if (tableout) free(tableout);
|
||||
}
|
||||
|
||||
void NmapOutputTable::addItem(unsigned int row, unsigned int column, bool copy, char *item,
|
||||
void NmapOutputTable::addItem(unsigned int row, unsigned int column, bool copy, const char *item,
|
||||
int itemlen) {
|
||||
struct NmapOutputTableCell *cell;
|
||||
|
||||
|
|
@ -160,7 +160,7 @@ void NmapOutputTable::addItem(unsigned int row, unsigned int column, bool copy,
|
|||
memcpy(cell->str, item, itemlen);
|
||||
cell->str[itemlen] = '\0';
|
||||
} else {
|
||||
cell->str = item;
|
||||
cell->str = (char *) item;
|
||||
}
|
||||
cell->weAllocated = copy;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue