#include "includes.h"
#include "system/filesys.h"
#include "printing/pcap.h"
+#include "lib/util/xfile.h"
/* handle standard printcap - moved from pcap_printer_fn() */
bool std_pcap_cache_reload(const char *pcap_name, struct pcap_cache **_pcache)
return false;
}
- for (; (pcap_line = fgets_slash(NULL, 1024, pcap_file)) != NULL; free(pcap_line)) {
+ for (; (pcap_line = x_fgets_slash(NULL, 1024, pcap_file)) != NULL;
+ free(pcap_line)) {
char *name = NULL;
char *comment = NULL;
char *p, *q;