1
0
Fork 0

Merge pull request #119 from zcrayfish/jpeg

Update menu.c: Fix JPEG detection.
This commit is contained in:
fosslinux 2024-02-28 07:43:37 +00:00 committed by GitHub
commit 4e06fd96ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -264,7 +264,7 @@ char gopher_filetype(state *st, char *file, char magic)
sstrncmp(buf, "GIF87a") == MATCH) return TYPE_GIF;
/* JPEG images */
if (sstrncmp(buf, "\377\330\377\340") == MATCH) return TYPE_IMAGE;
if (sstrncmp(buf, "\377\330\377") == MATCH) return TYPE_IMAGE;
/* PNG images */
if (sstrncmp(buf, "\211PNG") == MATCH) return TYPE_IMAGE;