diff options
author | green <green@FreeBSD.org> | 2002-02-07 02:54:30 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2002-02-07 02:54:30 +0000 |
commit | b3206d82789aa7fb0a08a53e1d71ce9995ca540b (patch) | |
tree | f1260b047691e74d8abf7f83cbf073e5d90f1c63 /bin/dd | |
parent | 3f914f4d776ca8a8278533e528e17b0d42334e4c (diff) | |
download | FreeBSD-src-b3206d82789aa7fb0a08a53e1d71ce9995ca540b.zip FreeBSD-src-b3206d82789aa7fb0a08a53e1d71ce9995ca540b.tar.gz |
Correct a logic bug that snuck in and broke multiplication of off_ts.
Diffstat (limited to 'bin/dd')
-rw-r--r-- | bin/dd/args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 96d9e35..8e6fab6 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -458,7 +458,7 @@ get_off_t(const char *val) mult = (quad_t)get_off_t(expr + 1); prevnum = num; num *= mult; - if ((prevnum > 0) != (num > 0) && num / mult == prevnum) + if ((prevnum > 0) == (num > 0) && num / mult == prevnum) break; erange: errx(1, "%s: %s", oper, strerror(ERANGE)); |