summaryrefslogtreecommitdiff
path: root/usr.bin/cdio
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2008-05-07 23:27:51 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2008-05-07 23:27:51 +0000
commit645116565faebdad638af7793e58ef343fd3c537 (patch)
treebd6e46044357086ce05d5d99de3d41d347e0fa4e /usr.bin/cdio
parent034625334503f3d798a17bde780904df9c17fd4a (diff)
correct duration by taking the pre-gap into account; ok by many.
Diffstat (limited to 'usr.bin/cdio')
-rw-r--r--usr.bin/cdio/cdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cdio/cdio.c b/usr.bin/cdio/cdio.c
index 1cad5555cc3..55974991dc9 100644
--- a/usr.bin/cdio/cdio.c
+++ b/usr.bin/cdio/cdio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cdio.c,v 1.57 2007/05/26 03:00:03 mjc Exp $ */
+/* $OpenBSD: cdio.c,v 1.58 2008/05/07 23:27:50 fgsch Exp $ */
/* Copyright (c) 1995 Serge V. Vakulenko
* All rights reserved.
@@ -1289,7 +1289,7 @@ prtrack(struct cd_toc_entry *e, int lastflag, char *name)
else
next = e[1].addr.lba;
len = next - block;
- lba2msf(len, &m, &s, &f);
+ lba2msf(len - 150, &m, &s, &f);
if (name)
printf("%2d:%02d.%02d %s\n", m, s, f, name);