summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1996-06-09 18:42:47 +0000
committerJason Downs <downsj@cvs.openbsd.org>1996-06-09 18:42:47 +0000
commit08608bac463bb3741c776e58e9daa07e181cde21 (patch)
treee427d0c6901b12631a91a70e17cd1aaf70075869
parentbfec34ccd452873e9105fb24e053a50b9eb6cba7 (diff)
Bug fix from Manuel.
-rw-r--r--sys/dev/atapi/acd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c
index 49775d33869..8d7b862550c 100644
--- a/sys/dev/atapi/acd.c
+++ b/sys/dev/atapi/acd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acd.c,v 1.2 1996/06/09 08:59:46 downsj Exp $ */
+/* $OpenBSD: acd.c,v 1.3 1996/06/09 18:42:46 downsj Exp $ */
/*
* Copyright (c) 1996 Manuel Bouyer. All rights reserved.
@@ -982,7 +982,7 @@ acd_size(cd, flags)
blksize = 2048; /* some drives lie ! */
cd->params.blksize = blksize;
- size = ntohl(size);
+ size = ntohl(rdcap.size);
if (size < 100)
size = 400000; /* ditto */
cd->params.disksize = size;