aboutsummaryrefslogtreecommitdiff
path: root/pcap-septel.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-03 15:59:38 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-03 15:59:38 -0800
commit735f1f9d3318693f0096be4198d34e9ac0985777 (patch)
tree3c2c26fc4df90474fad17f135dcec92748e77406 /pcap-septel.c
parent17e43dfad4f2923adc1a6c396b4e8e30a6a1dbb9 (diff)
Use pcap_snprintf() instead of snprintf().
On UN*Xes with snprintf(), we just #define pcap_snprintf to snprintf. On UN*Xes without snprintf(), we provide our own, but call it pcap_snprintf(). On Windows, we have a routine that wraps _snprintf(), with C99 semantics (ensuring null termination if the string won't fit), called pcap_snprintf(), and use that.
Diffstat (limited to 'pcap-septel.c')
-rw-r--r--pcap-septel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-septel.c b/pcap-septel.c
index 61cd2f57..2d23b9c0 100644
--- a/pcap-septel.c
+++ b/pcap-septel.c
@@ -276,7 +276,7 @@ static int septel_setfilter(pcap_t *p, struct bpf_program *fp) {
/* Make our private copy of the filter */
if (install_bpf_program(p, fp) < 0) {
- snprintf(p->errbuf, sizeof(p->errbuf),
+ pcap_snprintf(p->errbuf, sizeof(p->errbuf),
"malloc: %s", pcap_strerror(errno));
return -1;
}