Skip to content

Commit

Permalink
Fix bug introduced in master errorneously
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed May 6, 2024
1 parent 2af28a1 commit c29ec09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cdda_interface/toc.c.in
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ perform_test(const char *dir, const char *file, int (*func)(cdrom_drive_t *)){
int rc;

/* Below, +1 for null byte at the end */
char *drv = (char*) malloc(strlen(dir) + strlen(file) + strlen(".toc" + 1);
char *drv = (char*) malloc(strlen(dir) + strlen(file) + strlen(".toc") + 1);
strcpy(drv, dir);
strcat(drv, file);

Expand Down

0 comments on commit c29ec09

Please sign in to comment.