aboutsummaryrefslogtreecommitdiffstats
path: root/capture-wpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-12-29 21:43:59 +0000
committerGuy Harris <guy@alum.mit.edu>2011-12-29 21:43:59 +0000
commitaefe0984672b6c5aeb7a9b4a2d13929c12456c42 (patch)
tree1ca9c7fa4bf5314fe6b09de2eea6f4415953f943 /capture-wpcap.c
parent757de7e1cf107472f387833c595b51378a878600 (diff)
Forgot the buffer length argument to g_snprintf().
svn path=/trunk/; revision=40331
Diffstat (limited to 'capture-wpcap.c')
-rw-r--r--capture-wpcap.c6
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;
}