summaryrefslogtreecommitdiffstats
path: root/bin/dd
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dd')
-rw-r--r--bin/dd/args.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 7e66b7f..b629b3a 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -189,7 +189,7 @@ f_bs(char *arg)
res = get_num(arg);
if (res < 1 || res > SSIZE_MAX)
- errx(1, "bs must be between 1 and %zd", SSIZE_MAX);
+ errx(1, "bs must be between 1 and %jd", (intmax_t)SSIZE_MAX);
in.dbsz = out.dbsz = (size_t)res;
}
@@ -200,7 +200,7 @@ f_cbs(char *arg)
res = get_num(arg);
if (res < 1 || res > SSIZE_MAX)
- errx(1, "cbs must be between 1 and %zd", SSIZE_MAX);
+ errx(1, "cbs must be between 1 and %jd", (intmax_t)SSIZE_MAX);
cbsz = (size_t)res;
}
@@ -235,7 +235,8 @@ f_ibs(char *arg)
if (!(ddflags & C_BS)) {
res = get_num(arg);
if (res < 1 || res > SSIZE_MAX)
- errx(1, "ibs must be between 1 and %zd", SSIZE_MAX);
+ errx(1, "ibs must be between 1 and %jd",
+ (intmax_t)SSIZE_MAX);
in.dbsz = (size_t)res;
}
}
@@ -255,7 +256,8 @@ f_obs(char *arg)
if (!(ddflags & C_BS)) {
res = get_num(arg);
if (res < 1 || res > SSIZE_MAX)
- errx(1, "obs must be between 1 and %zd", SSIZE_MAX);
+ errx(1, "obs must be between 1 and %jd",
+ (intmax_t)SSIZE_MAX);
out.dbsz = (size_t)res;
}
}
OpenPOWER on IntegriCloud