1
0
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:
david
2009-07-08 21:46:11 +00:00
parent be55765315
commit e9d8897cde

View File

@@ -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. */