the-tcpdump-group/libpcap — pull request #311 by darkjames (2013-07-23 18:00:10+00:00)
Title: pcapng save format: snprintf() error to proper buffer

In fail label we're freeing pcap_t structure, so don't use p->errbuf,
but passed argument buffer.