From d062f92ae70cdc246bf0315eb44c9d5e264f9020 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Mon, 13 Sep 2004 16:44:36 +0000 Subject: [PATCH] Fixed off-by-one cuebreakpoints track printing. --- tools/cuebreakpoints.c | 2 +- tools/cueprint.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/cuebreakpoints.c b/tools/cuebreakpoints.c index ae610f3..5c79ba5 100644 --- a/tools/cuebreakpoints.c +++ b/tools/cuebreakpoints.c @@ -46,7 +46,7 @@ void print_breaks (Cd *cd) long b; Track *track; - for (i = 1; i < cd_get_ntrack(cd); i++) { + for (i = 1; i <= cd_get_ntrack(cd); i++) { track = cd_get_track(cd, i); /* don't print zero indexes */ b = track_get_start(track) + track_get_index(track, 1) - track_get_zero_pre(track); diff --git a/tools/cueprint.c b/tools/cueprint.c index e17be59..b87ce17 100644 --- a/tools/cueprint.c +++ b/tools/cueprint.c @@ -388,7 +388,6 @@ int main (int argc, char **argv) else if (0 == strcmp("toc", optarg)) format = TOC; break; - /* TODO add track selection */ case 'n': trackno = atoi(optarg); break;