about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY5
-rw-r--r--editor/pambackground.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index 659c0df6..523622c1 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,12 +6,17 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.69.00
 
+              pambackground: fix bug: segfault or incorrect results in most
+              cases.  Thanks Ludolf Holzheid (ludolf.holzheid@gmx.de).
+
               Windows build: fix universal build failure with "No rule to make
               ...icon.netpbm.oLINKERISCOMPILER...".  Broken in Netpbm 10.67
               (June 2014).
 
 14.09.26 BJH  Release 10.68.00
 
+              Split pgmcrater into pamcrater and pamshadedrelief.
+
               pnmconvol: add -bias .
 
               Remove pnmcomp, install a pnmcomp symlink for pamcomp.
diff --git a/editor/pambackground.c b/editor/pambackground.c
index c27d071d..b4941042 100644
--- a/editor/pambackground.c
+++ b/editor/pambackground.c
@@ -353,7 +353,7 @@ expandBackgroundVert(unsigned char ** const pi,
     unsigned int col;
     bool expanded;
 
-    for (col = 1, expanded = FALSE; col < height-1; ++col) {
+    for (col = 1, expanded = FALSE; col < width-1; ++col) {
         int row;
 
         for (row = 1; row < height - 1; ++row) {