diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-20 18:21:01 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2023-10-20 18:21:01 +0000 |
commit | cfaacab456a42c7faeca432ef6c1db93670a61cf (patch) | |
tree | 51a95b29fde8fae5e7468c44b741d77112f71266 /converter | |
parent | 62da479a0107841628618ed54181d09754ff4210 (diff) | |
download | netpbm-mirror-cfaacab456a42c7faeca432ef6c1db93670a61cf.tar.gz netpbm-mirror-cfaacab456a42c7faeca432ef6c1db93670a61cf.tar.xz netpbm-mirror-cfaacab456a42c7faeca432ef6c1db93670a61cf.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4768 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter')
-rw-r--r-- | converter/pbm/pbmtoppa/pbm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/converter/pbm/pbmtoppa/pbm.c b/converter/pbm/pbmtoppa/pbm.c index 1e7ec644..403ca95c 100644 --- a/converter/pbm/pbmtoppa/pbm.c +++ b/converter/pbm/pbmtoppa/pbm.c @@ -64,15 +64,15 @@ make_pbm_stat(pbm_stat * const pbmStatP, if (pbmStatP->width < 0) { pm_message("Image has negative width"); retval = 0; - } else if (pbmStatP->width > INT_MAX/2) { - pm_message("Uncomputeably large width: %d", + } else if (pbmStatP->width > INT_MAX/2 - 10) { + pm_message("Uncomputably large width: %d", pbmStatP->width); retval = 0; } else if (pbmStatP->height < 0) { pm_message("Image has negative height"); retval = 0; - } else if (pbmStatP->height > INT_MAX/2) { - pm_message("Uncomputeably large height: %d", + } else if (pbmStatP->height > INT_MAX/2 - 10) { + pm_message("Uncomputably large height: %d", pbmStatP->height); retval = 0; } else |