Skip to content

Commit c0db42c

Browse files
committed
Use MIRAGE_MCN_SIZE rather than a magic number
1 parent 7e4fcdd commit c0db42c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image_id.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ static bool process_disc(MirageDisc *disc, DiscId *discid) {
9494
int first, last;
9595
int offsets[100] = {0};
9696
char isrcs[100][MIRAGE_ISRC_SIZE+1] = {{0}};
97-
char mcn[13+1] = "\0";
97+
char mcn[MIRAGE_MCN_SIZE+1] = "\0";
9898

9999
if (mirage_disc_get_mcn(disc) != NULL) {
100100
strncpy(mcn, mirage_disc_get_mcn(disc), sizeof mcn);

0 commit comments

Comments
 (0)