diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-12-29 21:43:59 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-12-29 21:43:59 +0000 |
commit | ba8bc08ebdde8aefae419bb23983e6fba309bca9 (patch) | |
tree | 1ca9c7fa4bf5314fe6b09de2eea6f4415953f943 /capture-wpcap.c | |
parent | f509ba2d0cd413812331836a7fc8f93232467395 (diff) |
Forgot the buffer length argument to g_snprintf().
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@40331 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r-- | capture-wpcap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/capture-wpcap.c b/capture-wpcap.c index 6fd252f987..9dd7903ddd 100644 --- a/capture-wpcap.c +++ b/capture-wpcap.c @@ -324,7 +324,8 @@ pcap_t* pcap_open_live(const char *a, int b, int c, int d, char *e) { if (!has_wpcap) { - g_snprintf(e, "unable to load WinPcap (wpcap.dll); can't open %s to capture", + g_snprintf(e, PCAP_ERRBUF_SIZE, + "unable to load WinPcap (wpcap.dll); can't open %s to capture", a); return NULL; } @@ -358,7 +359,8 @@ pcap_t* pcap_open(const char *a, int b, int c, int d, struct pcap_rmtauth *e, char *f) { if (!has_wpcap) { - g_snprintf(f, "unable to load WinPcap (wpcap.dll); can't open %s to capture", + g_snprintf(f, PCAP_ERRBUF_SIZE, + "unable to load WinPcap (wpcap.dll); can't open %s to capture", a); return NULL; } |