XPM loader: Reduce signature window size some more

Now back (approximately) to the size before the mmap refactoring in
88231b52, included in release 1.7.5.
This commit is contained in:
Kim Woelders 2022-02-24 19:27:04 +01:00
parent ac59f89870
commit ea19ed87c8
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ load2(ImlibImage * im, int load_data)
if (fdata == MAP_FAILED)
return LOAD_BADFILE;
if (!memmem(fdata, im->fsize <= 4096 ? im->fsize : 4096, " XPM */", 7))
if (!memmem(fdata, im->fsize <= 256 ? im->fsize : 256, " XPM */", 7))
goto quit;
rc = LOAD_BADIMAGE; /* Format accepted */