Forgot the buffer length argument to g_snprintf().
svn path=/trunk/; revision=40331
This commit is contained in:
parent
757de7e1cf
commit
aefe098467
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue