mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fixed a format specifier warning (expected "long unsigned int").
This commit is contained in:
parent
c7fccb4d0c
commit
9044a42c6b
1 changed files with 1 additions and 1 deletions
|
|
@ -5037,7 +5037,7 @@ static void begin_sniffer(UltraScanInfo *USI, vector<Target *> &Targets) {
|
|||
len = Snprintf(macstring, sizeof(macstring), "%02X%02X%02X%02X%02X%02X",
|
||||
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
|
||||
if (len != sizeof(macstring) - 1)
|
||||
fatal("macstring length is %d, should be %u", len, sizeof(macstring) - 1);
|
||||
fatal("macstring length is %d, should be %u", len, (unsigned)(sizeof(macstring) - 1));
|
||||
/* First four bytes of MAC. */
|
||||
pcap_filter = "arp and arp[18:4] = 0x";
|
||||
pcap_filter.append(macstring, 0, 4 * 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue