summaryrefslogtreecommitdiff
path: root/savefile.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-08-09 09:53:24 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-08-09 10:02:38 +0200
commitf773b1c56122feaff9e9ecabbde3326b7c081233 (patch)
tree62974fbc45b16aee25cbeb09cf967be9d1f58608 /savefile.c
parentd6fd84ee114bf038587a860236176bdc7cf397a3 (diff)
downloadlibpcap-f773b1c56122feaff9e9ecabbde3326b7c081233.tar.gz
Use %zu as the print format for size_t
C99 support it and also Visual Studio VS 2015 and after. No more need for PRIsize format.
Diffstat (limited to 'savefile.c')
-rw-r--r--savefile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/savefile.c b/savefile.c
index a3db8ff4..415e6844 100644
--- a/savefile.c
+++ b/savefile.c
@@ -395,7 +395,7 @@ 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 %" PRIsize " file header bytes, only got %" PRIsize,
+ "truncated dump file; tried to read %zu file header bytes, only got %zu",
sizeof(magic), amt_read);
}
return (NULL);