diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/load-pnm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-pnm.c b/source/fitz/load-pnm.c index c30d0688..f0865e51 100644 --- a/source/fitz/load-pnm.c +++ b/source/fitz/load-pnm.c @@ -137,7 +137,7 @@ pnm_read_number(fz_context *ctx, unsigned char *p, unsigned char *e, int *number { if (e - p < 1) fz_throw(ctx, FZ_ERROR_GENERIC, "cannot parse number in pnm image"); - if (*p < '0' && *p > '9') + if (*p < '0' || *p > '9') fz_throw(ctx, FZ_ERROR_GENERIC, "expected numeric field in pnm image"); while (p < e && *p >= '0' && *p <= '9') |