From 9f6d80d87d8c6954bb26823b0c60359a17f7e8b9 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 17 Mar 2010 18:53:28 +0000 Subject: [PATCH] Small bug fix about track size with cdrskin -minfo --- cdrskin/cdrskin.c | 4 ++-- cdrskin/cdrskin_timestamp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdrskin/cdrskin.c b/cdrskin/cdrskin.c index 2099361..f697577 100644 --- a/cdrskin/cdrskin.c +++ b/cdrskin/cdrskin.c @@ -5276,8 +5276,8 @@ int Cdrskin_minfo(struct CdrskiN *skin, int flag) /* If last two blocks not readable then assume TAO and subtract 2 from lra and size. */; - ret= burn_read_data(drive, (off_t) lra * (off_t) 2048, buf, 2 * 2048, - &buf_count, 2 | 4); + ret= burn_read_data(drive, (off_t) (lra - 1) * (off_t) 2048, buf, + 2 * 2048, &buf_count, 2 | 4); if(ret <= 0) { lra-= 2; size-= 2; diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index 27446fd..a5473da 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.03.10.134802" +#define Cdrskin_timestamP "2010.03.17.185222"