From 0d1fa5548be7b9ec579aa0b4486838fd68aa266b Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 29 Dec 2009 11:57:21 +0000 Subject: [PATCH] Corrected a mode page size computation error which for now had no bad effect --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/spc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index d61e3621..2393b0b8 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.12.29.115717" +#define Cdrskin_timestamP "2009.12.29.115854" diff --git a/libburn/trunk/libburn/spc.c b/libburn/trunk/libburn/spc.c index 3e7b97f8..73a40610 100644 --- a/libburn/trunk/libburn/spc.c +++ b/libburn/trunk/libburn/spc.c @@ -328,7 +328,7 @@ static int spc_sense_caps_al(struct burn_drive *d, int *alloc_len, int flag) was_error = 1; } - size = c.page->data[0] * 256 + c.page->data[1]; + size = c.page->data[0] * 256 + c.page->data[1] + 2; page = c.page->data + 8; /* ts A61225 : @@ -524,7 +524,7 @@ void spc_sense_error_params(struct burn_drive *d) c.dir = FROM_DRIVE; d->issue_command(d, &c); - size = c.page->data[0] * 256 + c.page->data[1]; + size = c.page->data[0] * 256 + c.page->data[1] + 2; m = d->mdata; page = c.page->data + 8; d->params.retries = page[3]; @@ -607,7 +607,7 @@ void spc_sense_write_params(struct burn_drive *d) /* ts A71128 : do not interpret reply if error */ m = d->mdata; if (!c.error) { - size = c.page->data[0] * 256 + c.page->data[1]; + size = c.page->data[0] * 256 + c.page->data[1] + 2; page = c.page->data + 8; burn_print(1, "write page length 0x%x\n", page[1]); m->write_page_length = page[1];