Changeset 2862 for libpipi/trunk


Ignore:
Timestamp:
Oct 1, 2008, 10:20:45 PM (12 years ago)
Author:
Sam Hocevar
Message:

oric.c: allow to load invalid files that img2oric used to generate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/oric.c

    r2845 r2862  
    174174        goto syntax_error;
    175175
    176     /* Skip the header */
     176    /* Skip the header, ignoring the last byte’s value */
    177177    if(fgetc(fp) != 0x00 || fgetc(fp) != 0xff || fgetc(fp) != 0x80
    178178        || fgetc(fp) != 0x00 || fgetc(fp) != 0xbf || fgetc(fp) != 0x3f
    179         || fgetc(fp) != 0xa0 || fgetc(fp) != 0x00 || fgetc(fp) != 0x00)
     179        || fgetc(fp) != 0xa0 || fgetc(fp) != 0x00 || fgetc(fp) == EOF)
    180180        goto syntax_error;
    181181
Note: See TracChangeset for help on using the changeset viewer.