dumb typo
authorRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Wed, 23 Sep 1992 12:37:12 +0000 (04:37 -0800)
committerRalph Campbell <ralph@ucbvax.Berkeley.EDU>
Wed, 23 Sep 1992 12:37:12 +0000 (04:37 -0800)
SCCS-vsn: bin/dd/dd.c 5.15

usr/src/bin/dd/dd.c

index bbbf2c4..806c5b0 100644 (file)
@@ -16,7 +16,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)dd.c       5.14 (Berkeley) %G%";
+static char sccsid[] = "@(#)dd.c       5.15 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -322,7 +322,7 @@ dd_out(force)
                        nw = write(out.fd, outp, cnt);
                        if (nw < 0)
                                err("%s: %s", out.name, strerror(errno));
                        nw = write(out.fd, outp, cnt);
                        if (nw < 0)
                                err("%s: %s", out.name, strerror(errno));
-                       outp += rw;
+                       outp += nw;
                        st.bytes += nw;
                        if (nw == n) {
                                if (n != out.dbsz)
                        st.bytes += nw;
                        if (nw == n) {
                                if (n != out.dbsz)