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:
parent
ac59f89870
commit
ea19ed87c8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue