diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-30 22:31:06 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-06-30 22:31:06 -0500 |
commit | b4bba7b553995a6b13214dbbabe18ff311007eea (patch) | |
tree | f6b98e165322b35245dd6d62a6e15599d99c8c2a /kioslave/iso/libisofs/isofs.c | |
parent | 0536f0b707bf86636096c962e9bb32adf3bb8112 (diff) | |
download | tdelibs-b4bba7b553995a6b13214dbbabe18ff311007eea.tar.gz tdelibs-b4bba7b553995a6b13214dbbabe18ff311007eea.zip |
Fix iso kioslave not parsing large images properly
Diffstat (limited to 'kioslave/iso/libisofs/isofs.c')
-rw-r--r-- | kioslave/iso/libisofs/isofs.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kioslave/iso/libisofs/isofs.c b/kioslave/iso/libisofs/isofs.c index ab13d9eb9..e59945026 100644 --- a/kioslave/iso/libisofs/isofs.c +++ b/kioslave/iso/libisofs/isofs.c @@ -122,8 +122,8 @@ void FreeBootTable(boot_head *boot) { boot->defentry=NULL; } -int BootImageSize(int media,int len) { - int ret; +int BootImageSize(int media,long len) { + long long ret; switch(media & 0xf) { case 0: @@ -158,7 +158,7 @@ static boot_entry *CreateBootEntry(char *be) { return entry; } -int ReadBootTable(readfunc *read,int sector, boot_head *head, void *udata) { +int ReadBootTable(readfunc *read,long sector, boot_head *head, void *udata) { char buf[2048], *c, *be; int i,end=0; @@ -221,7 +221,7 @@ err: /** * Creates the linked list of the volume descriptors */ -iso_vol_desc *ReadISO9660(readfunc *read,int sector,void *udata) { +iso_vol_desc *ReadISO9660(readfunc *read,long sector,void *udata) { int i; struct iso_volume_descriptor buf; @@ -577,10 +577,10 @@ int level=0,joliet=0,dirs,files; iconv_t iconv_d; int fd; -int readf(char *buf, int start, int len,void *udata) { +int readf(char *buf, long start, long len,void *udata) { int ret; - if ((ret=lseek(fd, start << 11, SEEK_SET))<0) return ret; + if ((ret=lseek64(fd, start << 11, SEEK_SET))<0) return ret; ret=read(fd, buf, len << 11); if (ret<0) return ret; return (ret >> 11); |