summaryrefslogtreecommitdiff
path: root/lib/cdutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cdutils.cpp')
-rw-r--r--lib/cdutils.cpp6
1 files changed, 3 insertions, 3 deletions
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 <stdio.h>
#include <string.h>
@@ -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);
}
}