diff options
author | joerg <joerg@FreeBSD.org> | 1998-01-07 22:31:19 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1998-01-07 22:31:19 +0000 |
commit | f4281a32a5092299cfd8a9e05e9f8f85481681f6 (patch) | |
tree | 51c4b9760ec197cdd487f80096e5ee334e89d2c8 /bin/dd/dd.c | |
parent | 1e948b4b8ad5468170e0f4fd60bcaa4e0a70bb25 (diff) | |
download | FreeBSD-src-f4281a32a5092299cfd8a9e05e9f8f85481681f6.zip FreeBSD-src-f4281a32a5092299cfd8a9e05e9f8f85481681f6.tar.gz |
Use the correct value in the call to swab(3) with conv=swab. Previously,
dd if=/dev/zero of=/dev=null obs=23520 conv=swab
coredumped.
Please somebody review it, i'm not 105 % sure i'm understanding all
this mess correctly.
Detected by: Holm Tiffe <holm@geophysik.tu-freiberg.de>
Diffstat (limited to 'bin/dd/dd.c')
-rw-r--r-- | bin/dd/dd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/dd.c b/bin/dd/dd.c index bf14e16..6078bf5 100644 --- a/bin/dd/dd.c +++ b/bin/dd/dd.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: dd.c,v 1.11 1997/08/19 19:46:18 jlemon Exp $ + * $Id: dd.c,v 1.12 1997/10/11 20:09:05 joerg Exp $ */ #ifndef lint @@ -316,7 +316,7 @@ dd_in() } if (ddflags & C_SWAB) { - if ((n = in.dbcnt) & 1) { + if ((n = in.dbrcnt) & 1) { ++st.swab; --n; } |