Forgot the buffer length argument to g_snprintf().

svn path=/trunk/; revision=40331
This commit is contained in:
Guy Harris 2011-12-29 21:43:59 +00:00
parent 757de7e1cf
commit aefe098467
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}