ba9b350189
Changes: * Thu Feb 02 2006 - Release of a GPL compliant 2.01.01a05-ossdvd patch. This patch is for cdrtools-2.01.01a05.tar.bz2 and is adjusted to work with linux kernel 2.6.12 or higher and can be compiled with gcc-4.0.x. The rawio patch using libcap has been migrated to cdrtools-2.01.01a05-rawio.patch.bz2 . The patch called cdrtools-2.01.01-scsibuf.patch.bz has become redundant, as this has been integrated inside cdrtools-2.01.01a05.tar.bz2 . RPMS and SRPMS have been updated for mandriva 2006.0. The order of applying patches is now : 1. cdrtools-2.01.01a05-ossdvd.patch.bz2 .ossdvd 2. cdrtools-2.01.01a01-DVD-speed.patch.bz2 .dvd-speed 3. cdrtools-2.01.01a05-rawio.patch.bz2 .rawio 4. cdrtools-2.01.01a01-scanbus.patch.bz2 .scanbus Warly's Cdrecord DVD patch and others can now be found on http://people.mandriva.com/~warly/files/cdrtools/
25 lines
577 B
Text
25 lines
577 B
Text
$NetBSD: patch-cg,v 1.1 2006/02/04 12:05:17 wiz Exp $
|
|
|
|
--- mkisofs/write.c.orig 2005-08-07 14:50:48.000000000 +0000
|
|
+++ mkisofs/write.c
|
|
@@ -463,7 +463,7 @@ write_one_file(filename, size, outfile)
|
|
static char buffer[SECTOR_SIZE * NSECT];
|
|
FILE *infile;
|
|
off_t remain;
|
|
- int use;
|
|
+ off_t use;
|
|
|
|
|
|
if ((infile = fopen(filename, "rb")) == NULL) {
|
|
@@ -554,7 +554,10 @@ static char buffer[SECTOR_SIZE * NSECT]
|
|
fflush(stderr);
|
|
}
|
|
#endif
|
|
- remain -= use;
|
|
+ if (use > remain)
|
|
+ remain = 0;
|
|
+ else
|
|
+ remain -= use;
|
|
}
|
|
fclose(infile);
|
|
}/* write_one_file(... */
|