mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Use strtol, not strtoll, for Windows compatibility.
This commit is contained in:
2
nmap.cc
2
nmap.cc
@@ -900,7 +900,7 @@ int nmap_main(int argc, char *argv[]) {
|
||||
o.setVersionTrace(true);
|
||||
o.debugging++;
|
||||
} else if (optcmp(long_options[option_index].name, "data-length") == 0) {
|
||||
o.extra_payload_length = (int)strtoll( optarg, NULL, 10);
|
||||
o.extra_payload_length = (int)strtol(optarg, NULL, 10);
|
||||
if (o.extra_payload_length < 1 || o.extra_payload_length > MAX_PAYLOAD_ALLOWED)
|
||||
fatal("data-length must be between 1 and %d", MAX_PAYLOAD_ALLOWED);
|
||||
if (o.extra_payload_length > 1400 ) /* 1500 - IP with opts - TCP with opts. */
|
||||
|
||||
Reference in New Issue
Block a user