about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-01 01:07:53 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2016-12-01 01:07:53 +0000
commit036f0cf61db2a3521d724d0bc671e719c3be9a38 (patch)
treefc0efa8dfe57b76fc8addf17848f0976186a96df
parent74972256fffd43d1f1e16f0d4bc373e93aaed444 (diff)
downloadnetpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.tar.gz
netpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.tar.xz
netpbm-mirror-036f0cf61db2a3521d724d0bc671e719c3be9a38.zip
Release 10.76.01
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2846 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--doc/HISTORY5
-rw-r--r--editor/pnmpad.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index a8bf7fbc..2a8d5733 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,11 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+16.12.01 BJH  Release 10.76.01
+
+              pnmpad: fix bug: incorrect output width.  Introduced in
+              Netpbm 10.72 (July 2015).
+
 16.09.27 BJH  Release 10.76.00
 
               pnmquantall: Fix failure when temporary file location is
diff --git a/editor/pnmpad.c b/editor/pnmpad.c
index 168b73e0..051f3895 100644
--- a/editor/pnmpad.c
+++ b/editor/pnmpad.c
@@ -309,7 +309,7 @@ computePadSizeBeforeMult(unsigned int   const unpaddedSize,
             *begPadP = begPadReq;
             *endPadP = MAX(sizeReq, unpaddedSize + begPadReq) -
                 (begPadReq + unpaddedSize);
-        } else if (endPadReq) {
+        } else if (endPadSpec) {
             *endPadP = endPadReq;
             *begPadP = MAX(sizeReq, unpaddedSize + endPadReq) -
                 (unpaddedSize + endPadReq);