mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 07:59:03 +00:00
Use FQDN_LEN instead of MAXHOSTNAMELEN for DNS name buffers
This closes #140 (issue #140), namely "Use correct lengths for FQDN, not MAXHOSTNAMELEN"
This commit is contained in:
@@ -2095,7 +2095,7 @@ void printserviceinfooutput(Target *currenths) {
|
||||
Port port;
|
||||
struct serviceDeductions sd;
|
||||
int i, numhostnames = 0, numostypes = 0, numdevicetypes = 0, numcpes = 0;
|
||||
char hostname_tbl[MAX_SERVICE_INFO_FIELDS][MAXHOSTNAMELEN];
|
||||
char hostname_tbl[MAX_SERVICE_INFO_FIELDS][FQDN_LEN+1];
|
||||
char ostype_tbl[MAX_SERVICE_INFO_FIELDS][64];
|
||||
char devicetype_tbl[MAX_SERVICE_INFO_FIELDS][64];
|
||||
char cpe_tbl[MAX_SERVICE_INFO_FIELDS][80];
|
||||
|
||||
Reference in New Issue
Block a user