diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-11-19 00:39:39 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2021-11-19 00:39:39 +0000 |
commit | 055bdcea05ec69ce144e95cb4275c9c168f5ee50 (patch) | |
tree | caa9b40699f635c6927cd2263bc10f7f1dacf143 /editor/pbmpscale.c | |
parent | 1f028a3d66db42414e29bb3c86b690f290e2af85 (diff) | |
download | netpbm-mirror-055bdcea05ec69ce144e95cb4275c9c168f5ee50.tar.gz netpbm-mirror-055bdcea05ec69ce144e95cb4275c9c168f5ee50.tar.xz netpbm-mirror-055bdcea05ec69ce144e95cb4275c9c168f5ee50.zip |
Release 10.86.26
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@4180 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/pbmpscale.c')
-rw-r--r-- | editor/pbmpscale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/pbmpscale.c b/editor/pbmpscale.c index 9ab89350..3b6935b2 100644 --- a/editor/pbmpscale.c +++ b/editor/pbmpscale.c @@ -141,7 +141,7 @@ validateComputableDimensions(unsigned int const width, See validateComputetableSize() in libpam.c and pbm_readpbminitrest() in libpbm2.c -----------------------------------------------------------------------------*/ - unsigned int const maxWidthHeight = INT_MAX - 2; + unsigned int const maxWidthHeight = INT_MAX - 10; unsigned int const maxScaleFactor = maxWidthHeight / MAX(height, width); if (scaleFactor > maxScaleFactor) @@ -154,8 +154,8 @@ validateComputableDimensions(unsigned int const width, static void writeBitSpan(unsigned char * const packedBitrow, - int const cols, - int const offset, + unsigned int const cols, + unsigned int const offset, int const color) { /*---------------------------------------------------------------------------- Write white (color="0") or black (="1") bits into packedBitrow[], |