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