From fb6db18f7032c106ffa7c98a43370df0a7b125dc Mon Sep 17 00:00:00 2001 From: pixel Date: Sun, 2 May 2004 21:04:45 +0000 Subject: Buuuuuuuuuuuuuuug --- lib/cdutils.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/cdutils.cpp') diff --git a/lib/cdutils.cpp b/lib/cdutils.cpp index 51e2e09..821d51a 100644 --- a/lib/cdutils.cpp +++ b/lib/cdutils.cpp @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: cdutils.cpp,v 1.27 2004-05-01 11:48:58 pixel Exp $ */ +/* $Id: cdutils.cpp,v 1.28 2004-05-02 21:04:45 pixel Exp $ */ #include #include @@ -319,7 +319,7 @@ void cdutils::write_file(Handle * file, long size, int type, int number) { if (type == GUESS) { type = guess_type(number); } - + if (number >= 0) { sector_seek(number); } @@ -334,7 +334,7 @@ void cdutils::write_file(Handle * file, long size, int type, int number) { for (i = 0; i < nbsectors; i++) { memset(buffer, 0, 2352); - file->read(buffer, sec_sizes[type]); + size = file->read(buffer, sec_sizes[type]); write_sector(buffer, type); } } -- cgit v1.2.3