1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-16 06:25:23 +00:00

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

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;