diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1999-03-12 04:09:08 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1999-03-12 04:09:08 +0000 |
commit | 5592556834ceab961c80a5ac15d2e1477e9ac705 (patch) | |
tree | 8180ba1399ba164d186fca8c2e00113c5a80b0a2 /sys/dev/atapi/acd.c | |
parent | a33bbad77e106a64b4d623f53a761a7f068caaff (diff) |
fix problem where last entry in cd toc had seconds and frame zeroed,
wouters@cistron.nl.
Diffstat (limited to 'sys/dev/atapi/acd.c')
-rw-r--r-- | sys/dev/atapi/acd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/atapi/acd.c b/sys/dev/atapi/acd.c index 949991cca91..871537ff72e 100644 --- a/sys/dev/atapi/acd.c +++ b/sys/dev/atapi/acd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acd.c,v 1.34 1998/10/05 17:30:58 millert Exp $ */ +/* $OpenBSD: acd.c,v 1.35 1999/03/12 04:09:07 provos Exp $ */ /* * Copyright (c) 1996 Manuel Bouyer. All rights reserved. @@ -837,8 +837,8 @@ acdioctl(dev, cmd, addr, flag, p) } if (acd->ad_link->quirks & AQUIRK_LITTLETOC) bswap((u_int8_t*)&th->len, sizeof(th->len)); - - len = min(len, ntohs(th->len) - sizeof(struct ioc_toc_header)); + len = min(len, ntohs(th->len) - (sizeof(th->starting_track) + + sizeof(th->ending_track))); return copyout(toc.tab, te->data, len); } |