From 07796aea232be1dcbb335c34fc001272a85030d5 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Mon, 24 Mar 2003 20:54:30 +0000 Subject: [PATCH] Fix bug that made cdcontrol play play - 1 --- usr.sbin/cdcontrol/cdcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/cdcontrol/cdcontrol.c b/usr.sbin/cdcontrol/cdcontrol.c index 35ea358feb7a..47c55b41f110 100644 --- a/usr.sbin/cdcontrol/cdcontrol.c +++ b/usr.sbin/cdcontrol/cdcontrol.c @@ -581,6 +581,8 @@ int play (char *arg) 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 @@ int play (char *arg) return (0); } - tr1--; - f1 += tf; if (f1 >= 75) { s1 += f1 / 75;