]> The Tcpdump Group git mirrors - libpcap/blobdiff - savefile.c
Add PRIsize, to use as the print format for size_t, and use it.
[libpcap] / savefile.c
index ec44ef4fe05661449136975952a9e85450900825..830669ec4a86f7231147fb763a8858d804923b8e 100644 (file)
@@ -365,9 +365,8 @@ pcap_fopen_offline_with_tstamp_precision(FILE *fp, u_int precision,
                            errno, "error reading dump file");
                } else {
                        pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
-                           "truncated dump file; tried to read %lu file header bytes, only got %lu",
-                           (unsigned long)sizeof(magic),
-                           (unsigned long)amt_read);
+                           "truncated dump file; tried to read %" PRIsize " file header bytes, only got %" PRIsize,
+                           sizeof(magic), amt_read);
                }
                return (NULL);
        }