mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Use strtol, not strtoll, for Windows compatibility.
This commit is contained in:
parent
be55765315
commit
e9d8897cde
1 changed files with 1 additions and 1 deletions
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. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue