diff options
author | pi <pi@FreeBSD.org> | 2014-10-27 17:39:37 +0000 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2014-10-27 17:39:37 +0000 |
commit | 4280e8bc36a0ce1e00c5bf1662664cfa0213dba2 (patch) | |
tree | e7c1dfa585789cd102f898da1c3e8a03c2aab264 /bin/dd/conv.c | |
parent | b27ddf1ff3b61ee99e933d7e2b15b23754120fb9 (diff) | |
download | FreeBSD-src-4280e8bc36a0ce1e00c5bf1662664cfa0213dba2.zip FreeBSD-src-4280e8bc36a0ce1e00c5bf1662664cfa0213dba2.tar.gz |
bin/dd: revert 273734, as it fails on 32bit platforms
Revert: insufficient testing on 32bit platforms
PR: 191263
Diffstat (limited to 'bin/dd/conv.c')
-rw-r--r-- | bin/dd/conv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/dd/conv.c b/bin/dd/conv.c index 6b1822b..2ffba1e 100644 --- a/bin/dd/conv.c +++ b/bin/dd/conv.c @@ -133,7 +133,7 @@ block(void) */ ch = 0; for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) { - maxlen = MIN(cbsz, (size_t)in.dbcnt); + maxlen = MIN(cbsz, in.dbcnt); if ((t = ctab) != NULL) for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; ++cnt) @@ -146,7 +146,7 @@ block(void) * Check for short record without a newline. Reassemble the * input block. */ - if (ch != '\n' && (size_t)in.dbcnt < cbsz) { + if (ch != '\n' && in.dbcnt < cbsz) { (void)memmove(in.db, in.dbp - in.dbcnt, in.dbcnt); break; } @@ -228,7 +228,7 @@ unblock(void) * translation has to already be done or we might not recognize the * spaces. */ - for (inp = in.db; (size_t)in.dbcnt >= cbsz; inp += cbsz, in.dbcnt -= cbsz) { + for (inp = in.db; in.dbcnt >= cbsz; inp += cbsz, in.dbcnt -= cbsz) { for (t = inp + cbsz - 1; t >= inp && *t == ' '; --t) ; if (t >= inp) { |