Skip to content

Commit

Permalink
Merge pull request #182 from jelu/pcap-layers
Browse files Browse the repository at this point in the history
pcap_layers, CID
  • Loading branch information
jelu authored Jul 6, 2018
2 parents b09490d + 476d6ed commit 4ae0301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dns_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ printable_dnsname(const char* name)
} else {
if (i + 3 > MAX_QNAME_SZ - 1)
break; /* expanded character would overflow buffer */
snprintf(buf + i, i - sizeof(buf) - 1, "%%%02x", (unsigned char)*name);
snprintf(buf + i, sizeof(buf) - i - 1, "%%%02x", (unsigned char)*name);
i += 3;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pcap_layers
Submodule pcap_layers updated 1 files
+64 −35 pcap_layers.c

0 comments on commit 4ae0301

Please sign in to comment.