Fix cuesheet bug introduced in ce8a75134cace056f6c436d54b57bad1a1d93797.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 03:08:12 +0000 (14:08 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 Feb 2012 03:08:12 +0000 (14:08 +1100)
This bug was causing the test_metaflac.sh test to fail after Earl Chew's
patch 19050f74eaa1aa6d609ca065e1a854ada5bb6b4c was supposed to fix an
older bug.

src/metaflac/operations_shorthand_cuesheet.c

index dadb53b..4393a16 100644 (file)
@@ -165,7 +165,7 @@ FLAC__bool import_cs_from(const char *filename, FLAC__StreamMetadata **cuesheet,
                for(track = 0; track < cs->num_tracks; track++) {
                        const FLAC__StreamMetadata_CueSheet_Track *tr = cs->tracks+track;
                        for(index = 0; index < tr->num_indices; index++) {
-                               sprintf(spec, "%" PRIu64 "u;", (tr->offset + tr->indices[index].offset));
+                               sprintf(spec, "%" PRIu64 ";", (tr->offset + tr->indices[index].offset));
                                local_strcat(seekpoint_specification, spec);
                        }
                }