Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tape.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,15 +992,17 @@ tape_block_details( char *buffer, size_t length,
break;

normal:
/* The -2 here is for the flag and parity bytes */
snprintf( buffer, length, "%lu bytes",
(unsigned long)libspectrum_tape_block_data_length( block ) );
(unsigned long)libspectrum_tape_block_data_length( block ) - 2 );
break;

case LIBSPECTRUM_TAPE_BLOCK_TURBO:
case LIBSPECTRUM_TAPE_BLOCK_PURE_DATA:
case LIBSPECTRUM_TAPE_BLOCK_RAW_DATA:
/* The -2 here is for the flag and parity bytes */
snprintf( buffer, length, "%lu bytes",
(unsigned long)libspectrum_tape_block_data_length( block ) );
(unsigned long)libspectrum_tape_block_data_length( block ) - 2 );
break;

case LIBSPECTRUM_TAPE_BLOCK_PURE_TONE:
Expand Down