Silenced an error message with input that is not aligned to 2 kB

This commit is contained in:
Thomas Schmitt 2011-03-19 22:21:35 +00:00
parent a3ac6c63aa
commit a088a85374
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.03.18.153326" #define Cdrskin_timestamP "2011.03.19.222152"

View File

@ -182,7 +182,8 @@ static void get_bytes(struct burn_track *track, int count, unsigned char *data)
/* ts A61031 - B10103 */ /* ts A61031 - B10103 */
if (shortage >= count) if (shortage >= count)
track->track_data_done = 1; track->track_data_done = 1;
if (track->end_on_premature_eoi && !track->open_ended) { if (track->end_on_premature_eoi && shortage >= count &&
!track->open_ended) {
char msg[80]; char msg[80];
/* Memorize that premature end of input happened */ /* Memorize that premature end of input happened */
sprintf(msg, sprintf(msg,