Blame SOURCES/fuseiso-largeiso.patch

3c7274
Index: src/isofs.c
3c7274
===================================================================
3c7274
--- src/isofs.c	(Revision 5)
3c7274
+++ src/isofs.c	(Arbeitskopie)
3c7274
@@ -178,7 +178,7 @@
3c7274
                         context.data_size = isonum_723(context.pd.logical_block_size);
3c7274
                         
3c7274
                         if(!context.block_size) {
3c7274
-                            fprintf(stderr, "init: wrong block data size %d, using default 2048\n", context.data_size);
3c7274
+                            fprintf(stderr, "init: wrong block data size %Lu, using default 2048\n", context.data_size);
3c7274
                             context.data_size = 2048;
3c7274
                         };
3c7274
                         
3c7274
@@ -324,7 +324,7 @@
3c7274
     
3c7274
     if(context.block_size != 2048) {
3c7274
         // report unusual data block size
3c7274
-        printf("Data block size: %d\n", context.block_size);
3c7274
+        printf("Data block size: %Lu\n", context.block_size);
3c7274
     };
3c7274
     
3c7274
     char buf[129];
3c7274
@@ -479,7 +479,7 @@
3c7274
     };
3c7274
     size_t len = read(context.fd, buf, context.data_size);
3c7274
     if(len != context.data_size) {
3c7274
-        fprintf(stderr, "isofs_read_raw_block: can`t read full block, read only %d bytes from offset %d, %d required; errno %d, message %s\n", 
3c7274
+        fprintf(stderr, "isofs_read_raw_block: can`t read full block, read only %d bytes from offset %d, %Lu required; errno %d, message %s\n", 
3c7274
             len, (int) off, context.data_size, errno, strerror(errno));
3c7274
         fprintf(stderr, "isofs_read_raw_block: huh? reading zeros beyond file end? someone want to save a penny?\n");
3c7274
         memset(buf + len, 0, context.data_size - len);
3c7274
Index: src/isofs.h
3c7274
===================================================================
3c7274
--- src/isofs.h	(Revision 5)
3c7274
+++ src/isofs.h	(Arbeitskopie)
3c7274
@@ -38,9 +38,9 @@
3c7274
     struct iso_directory_record *root;
3c7274
     int file_offset; // offset to begin of useful data (for .nrg files)
3c7274
     int id_offset; // offset to CD001 inside file
3c7274
-    size_t block_size; // raw block size
3c7274
-    size_t block_offset; // offset from block start to data
3c7274
-    size_t data_size; // data size inside block 
3c7274
+    off_t block_size; // raw block size
3c7274
+    off_t block_offset; // offset from block start to data
3c7274
+    off_t data_size; // data size inside block 
3c7274
     int susp; // parse susp entries
3c7274
     int susp_skip; // skip bytes from susp SP entry
3c7274
     int joliet_level; // joliet extension level (1, 2 or 3)