Changeset 7461


Ignore:
Timestamp:
12/24/10 15:15:57 (9 years ago)
Author:
melissa
Message:

Fixed a bug in ZipHandle.isZipFile(String) that was introduced in r7460.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/ZipHandle.java

    r7460 r7461  
    120120    IRandomAccess handle = getHandle(file); 
    121121    byte[] b = new byte[2]; 
    122     handle.read(b); 
     122    if (handle.length() >= 2) { 
     123      handle.read(b); 
     124    } 
    123125    handle.close(); 
    124126    return new String(b).equals("PK"); 
Note: See TracChangeset for help on using the changeset viewer.