~ubuntu-branches/ubuntu/breezy/unzip/breezy-security

« back to all changes in this revision

Viewing changes to extract.c

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2005-02-28 15:25:52 UTC
  • Revision ID: james.westby@ubuntu.com-20050228152552-ckla4p55xr0tz3ek
Tags: 5.51-2ubuntu1
Fixed unzip of >2GB files, thanks to patch from ard at kwaak.net 

Show diffs side-by-side

added added

removed removed

Lines of Context:
299
299
     __GDEF
300
300
{
301
301
    unsigned i, j;
302
 
    long cd_bufstart;
 
302
    LONGINT cd_bufstart;
303
303
    uch *cd_inptr;
304
304
    int cd_incnt;
305
305
    ulg filnum=0L, blknum=0L;
869
869
    mapattr(__G);   /* GRR:  worry about return value later */
870
870
 
871
871
    G.pInfo->diskstart = G.crec.disk_number_start;
872
 
    G.pInfo->offset = (long)G.crec.relative_offset_local_header;
 
872
    G.pInfo->offset = (LONGINT)G.crec.relative_offset_local_header;
873
873
    return 1;
874
874
 
875
875
} /* end function store_info() */
902
902
    unsigned i;
903
903
    int renamed, query;
904
904
    int skip_entry;
905
 
    long bufstart, inbuf_offset, request;
 
905
    LONGINT bufstart, inbuf_offset, request;
906
906
    int error, errcode;
907
907
 
908
908
/* possible values for local skip_entry flag: */