diff options
author | Michael Coulter <mjc@cvs.openbsd.org> | 2006-08-28 02:36:44 +0000 |
---|---|---|
committer | Michael Coulter <mjc@cvs.openbsd.org> | 2006-08-28 02:36:44 +0000 |
commit | b9ea3cf0565b38bfc32ad7d9fb473b8e7e55793b (patch) | |
tree | 8af6c3b7775f0740a517ecf276940fcd620f14e9 /usr.bin | |
parent | f1ef41a6b53033da10bbe658b28350d294358867 (diff) |
fix up disc size check.
ok krw@ deraadt@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/cdio/mmc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cdio/mmc.c b/usr.bin/cdio/mmc.c index fcc51567dc0..2e5e892b698 100644 --- a/usr.bin/cdio/mmc.c +++ b/usr.bin/cdio/mmc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mmc.c,v 1.15 2006/08/26 03:48:50 deraadt Exp $ */ +/* $OpenBSD: mmc.c,v 1.16 2006/08/28 02:36:43 mjc Exp $ */ /* * Copyright (c) 2006 Michael Coulter <mjc@openbsd.org> @@ -325,8 +325,8 @@ get_disc_size(off_t *availblk) scr.senselen = SENSEBUFLEN; scb->opcode = READ_TRACK_INFO; scb->addrtype = RTI_TRACK; - scb->addr[1] = 1; - scb->data_len[3] = 0x1c; + scb->addr[3] = 1; + scb->data_len[1] = 0x1c; scr.cmdlen = sizeof(*scb); scr.datalen= 0x1c; scr.flags = SCCMD_ESCAPE|SCCMD_READ; |