about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-03-03 03:38:46 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-03-03 03:38:46 +0000
commit5bdda6e4dd7ed9b590aa5428a48d796c653a84eb (patch)
tree2878315537e1f1e03d5db574e39cffefb950c8c7
parent4842d1d08807b4e85605a559abc65e9d52575bb1 (diff)
downloadnetpbm-mirror-5bdda6e4dd7ed9b590aa5428a48d796c653a84eb.tar.gz
netpbm-mirror-5bdda6e4dd7ed9b590aa5428a48d796c653a84eb.tar.xz
netpbm-mirror-5bdda6e4dd7ed9b590aa5428a48d796c653a84eb.zip
Fix use of unset variable
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2414 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/other/pamtosvg/pxl-outline.c2
-rw-r--r--doc/HISTORY4
2 files changed, 5 insertions, 1 deletions
diff --git a/converter/other/pamtosvg/pxl-outline.c b/converter/other/pamtosvg/pxl-outline.c
index 0dda3cc3..a1fa5299 100644
--- a/converter/other/pamtosvg/pxl-outline.c
+++ b/converter/other/pamtosvg/pxl-outline.c
@@ -269,7 +269,7 @@ findOneCenterline(bitmap_type    const bitmap,
     */
     {
         pm_pixelcoord pos;
-        pos.col = col; pos.row = bitmap.height - row - 1;
+        pos.col = originalCol; pos.row = bitmap.height - originalRow - 1;
         LOG2(" (%d,%d)", pos.col, pos.row);
         append_outline_pixel(&outline, pos);
     }
diff --git a/doc/HISTORY b/doc/HISTORY
index 818b6ac4..ec0fbb64 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -22,6 +22,10 @@ not yet  BJH  Release 10.70.00
               nearly always.  Always broken (These options were new in
               Netpbm 10.32 (February 2006)).
 
+              pamtosvg: fix use of unset variable; probably results in a
+              crash.  Always present (pamtosvg was new in Netpbm 10.33 (March
+              2006).
+
               cameratopam: fix bug: variable used before set; unknown impact.
               Introduced in Netpbm 10.66 (March 2014).