summaryrefslogtreecommitdiff
path: root/sbin/dump/tape.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/dump/tape.c')
-rw-r--r--sbin/dump/tape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index 2b001f38da2..a64bd6b9fbf 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.38 2013/11/12 04:59:02 deraadt Exp $ */
+/* $OpenBSD: tape.c,v 1.39 2014/05/24 21:49:09 krw Exp $ */
/* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */
/*-
@@ -182,7 +182,7 @@ dumpblock(daddr_t blkno, int size)
spcl.c_tapea += avail;
if (trecno >= ntrec)
flushtape();
- dblkno += avail << (tp_bshift - dev_bshift);
+ dblkno += avail << (tp_bshift - (ffs(DEV_BSIZE) - 1));
tpblks -= avail;
}
}