From b697ee802292fe5b326e6ee38bf4c9e0e4824f1b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 19 Mar 2011 22:21:35 +0000 Subject: [PATCH] Silenced an error message with input that is not aligned to 2 kB --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/sector.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 2b9e4f95..1c55139b 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2011.03.18.153326" +#define Cdrskin_timestamP "2011.03.19.222152" diff --git a/libburn/trunk/libburn/sector.c b/libburn/trunk/libburn/sector.c index 32b4a9a6..0bba5512 100644 --- a/libburn/trunk/libburn/sector.c +++ b/libburn/trunk/libburn/sector.c @@ -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,