Sfoglia il codice sorgente

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

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2862 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam 16 anni fa
parent
commit
b254b61998
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      pipi/codec/oric.c

+ 2
- 2
pipi/codec/oric.c Vedi File

@@ -173,10 +173,10 @@ static int read_screen(char const *name, uint8_t *screen)
if(ch != 0x24)
goto syntax_error;

/* Skip the header */
/* Skip the header, ignoring the last byte’s value */
if(fgetc(fp) != 0x00 || fgetc(fp) != 0xff || fgetc(fp) != 0x80
|| fgetc(fp) != 0x00 || fgetc(fp) != 0xbf || fgetc(fp) != 0x3f
|| fgetc(fp) != 0xa0 || fgetc(fp) != 0x00 || fgetc(fp) != 0x00)
|| fgetc(fp) != 0xa0 || fgetc(fp) != 0x00 || fgetc(fp) == EOF)
goto syntax_error;

/* Skip the file name, including trailing nul char */


Caricamento…
Annulla
Salva