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 0f79047c75
commit b697ee8022
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 */
if (shortage >= count)
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];
/* Memorize that premature end of input happened */
sprintf(msg,