summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cdcontrol
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>2003-03-24 20:54:30 +0000
committereivind <eivind@FreeBSD.org>2003-03-24 20:54:30 +0000
commitffd0ffb69b0c8965d75f9cb08cfe3948ccc7bc9c (patch)
tree0feea0c0ea178542246d749c1f008cc62021aaf2 /usr.sbin/cdcontrol
parent8fda0bf5a4963c5755fe1cc74c638347b01430bf (diff)
downloadFreeBSD-src-ffd0ffb69b0c8965d75f9cb08cfe3948ccc7bc9c.zip
FreeBSD-src-ffd0ffb69b0c8965d75f9cb08cfe3948ccc7bc9c.tar.gz
Fix bug that made cdcontrol play <track> play <track> - 1
Diffstat (limited to 'usr.sbin/cdcontrol')
-rw-r--r--usr.sbin/cdcontrol/cdcontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c
index 35ea358..47c55b4 100644
--- a/usr.sbin/cdcontrol/cdcontrol.c
+++ b/usr.sbin/cdcontrol/cdcontrol.c
@@ -581,6 +581,8 @@ Play_Relative_Addresses:
else if (tr1 > n)
tr1 = n;
+ tr1--;
+
if (msf) {
tm = toc_buffer[tr1].addr.msf.minute;
ts = toc_buffer[tr1].addr.msf.second;
@@ -597,8 +599,6 @@ Play_Relative_Addresses:
return (0);
}
- tr1--;
-
f1 += tf;
if (f1 >= 75) {
s1 += f1 / 75;
OpenPOWER on IntegriCloud