diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-12-29 21:43:59 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-12-29 21:43:59 +0000 |
commit | aefe0984672b6c5aeb7a9b4a2d13929c12456c42 (patch) | |
tree | 1ca9c7fa4bf5314fe6b09de2eea6f4415953f943 /capture-wpcap.c | |
parent | 757de7e1cf107472f387833c595b51378a878600 (diff) | |
download | wireshark-aefe0984672b6c5aeb7a9b4a2d13929c12456c42.tar.gz wireshark-aefe0984672b6c5aeb7a9b4a2d13929c12456c42.tar.bz2 wireshark-aefe0984672b6c5aeb7a9b4a2d13929c12456c42.zip |
Forgot the buffer length argument to g_snprintf().
svn path=/trunk/; revision=40331
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; } |