1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

- fix for 0 sized gif images too

- fixed wrong test for 0 size in nxpm.c
This commit is contained in:
dan
2002-10-25 04:21:09 +00:00
parent 0f0afc48ab
commit 3af4aa7846
4 changed files with 13 additions and 7 deletions

View File

@@ -86,9 +86,9 @@ RGetImageFromXPMData(RContext *context, char **data)
int w, h, ccount, csize;
if (sscanf(data[line++], "%i %i %i %i", &w, &h, &ccount, &csize)!=4
|| w <= 1 || h <= 1 || ccount <= 0 || csize <= 0)
|| w <= 0 || h <= 0 || ccount <= 0 || csize <= 0)
goto bad_format;
if (csize!=1 && csize!=2)
goto bad_format;