aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>1999-09-16 05:12:59 +0000
committerBrian Feldman <green@FreeBSD.org>1999-09-16 05:12:59 +0000
commit1838cf5671b15301563ab98dfe759d3188ee2d00 (patch)
tree85f74e438a45e883b626dad5a73d5f410cb94bcd /bin
parentf9083fdb2a0fab97506bf9b35be0b413196eafa9 (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/dd/args.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c
index 48b20633d2eb0..734850307a022 100644
--- a/bin/dd/args.c
+++ b/bin/dd/args.c
@@ -207,8 +207,8 @@ f_count(arg)
{
cpy_cnt = get_num(arg);
- if (!cpy_cnt)
- terminate(0);
+ if (cpy_cnt < 0)
+ errx(1, "count cannot be negative");
}
static void