Question
Adayadil Thomas <[email protected]>
| Newsgroups | gmane.comp.lang.c-- |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
Greetings!
I have a question. Please help.
printf("Save file is %s\n", saveFile);
pd = pcap_dump_open(pf, saveFile);
if (pd == PNUL)
{
printf("Pcap open dump failed \n" );
exit(1);
}
If I comment the printf line, I get a core dump on the pcap_dump_open call
If i uncomment, it works fine.
Any explanation/help/tips is appreciated.
-thanks