snprintf() error to proper buffer

In fail label we're freeing pcap_t structure, so don't use p->errbuf,
but passed argument buffer.
Merge pull request #311 from darkjames/pcapng-error-fix

pcapng save format: snprintf() error to proper buffer