about summary refs log tree commit diff
path: root/generator/pamstereogram.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-04-08 15:39:52 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2012-04-08 15:39:52 +0000
commit6234f28e80e12318b03432ae849ca40ca702108f (patch)
tree5550d700275559dc1882a9e29b31290603088453 /generator/pamstereogram.c
parent3f8bde1697b5e8c78691a68bcf9e656ba46e8cd9 (diff)
downloadnetpbm-mirror-6234f28e80e12318b03432ae849ca40ca702108f.tar.gz
netpbm-mirror-6234f28e80e12318b03432ae849ca40ca702108f.tar.xz
netpbm-mirror-6234f28e80e12318b03432ae849ca40ca702108f.zip
Fix crash from 1317
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1680 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator/pamstereogram.c')
-rw-r--r--generator/pamstereogram.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/pamstereogram.c b/generator/pamstereogram.c
index 574bb033..7c930894 100644
--- a/generator/pamstereogram.c
+++ b/generator/pamstereogram.c
@@ -825,7 +825,7 @@ computeFixedPoint(const int *  const same,
 -----------------------------------------------------------------------------*/
     int col;
 
-    for (col = width; col >= 0; --col) {
+    for (col = width-1; col >= 0; --col) {
         if (same[col] != col)
             sameFp[col] = sameFp[same[col]];
         else {