aboutsummaryrefslogtreecommitdiff
path: root/bin/dd
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-03-15 13:34:48 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-03-15 13:34:48 +0000
commitbfd86a6070c673446ea3900cb0ff7c6f1b282963 (patch)
tree9d04135427aea0eaee6550bb88f6fb113029447a /bin/dd
parent869c12cbb472ef6f384a9ab1b03b51f56b792b10 (diff)
downloadsrc-bfd86a6070c673446ea3900cb0ff7c6f1b282963.tar.gz
src-bfd86a6070c673446ea3900cb0ff7c6f1b282963.zip
Notes
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 7e66b7fd96aa..b629b3ad4e44 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;
}
}