about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-04-05 15:31:03 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2010-04-05 15:31:03 +0000
commitbfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35 (patch)
tree100c26faccc2884e39c0ff8efafc9f66ea78fe9a
parent79cc05d8b6609e79d87871f860d5cc08e6405958 (diff)
downloadnetpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.tar.gz
netpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.tar.xz
netpbm-mirror-bfa0ea3cff9f2938c5eaa4f9be2730a6874e5a35.zip
Fix signedness problem
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1176 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r--converter/other/avstopam.c10
-rw-r--r--doc/HISTORY2
2 files changed, 7 insertions, 5 deletions
diff --git a/converter/other/avstopam.c b/converter/other/avstopam.c
index 8d32008c..322f387d 100644
--- a/converter/other/avstopam.c
+++ b/converter/other/avstopam.c
@@ -43,11 +43,11 @@ producePam(FILE *       const avsFileP,
         unsigned int col;
         for (col = 0; col < pamP->width; ++col) {
             tuple const thisTuple = tuplerow[col];
-            char c;
-            pm_readchar(avsFileP, &c); thisTuple[3] = c;
-            pm_readchar(avsFileP, &c); thisTuple[0] = c;
-            pm_readchar(avsFileP, &c); thisTuple[1] = c;
-            pm_readchar(avsFileP, &c); thisTuple[2] = c;
+            unsigned char c;
+            pm_readcharu(avsFileP, &c); thisTuple[3] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[0] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[1] = c;
+            pm_readcharu(avsFileP, &c); thisTuple[2] = c;
         }
         pnm_writepamrow(pamP, tuplerow);
     }
diff --git a/doc/HISTORY b/doc/HISTORY
index 0b7d51b6..c3e60fd9 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -16,6 +16,8 @@ not yet  BJH  Release 10.51.00
               large as to bust the system's program parameter size limit
               on the invocation of pnmconvol.
 
+              avstopam: fix incorrect output.
+
               pnmsmooth: fix arithmetic overflow with absurdly large
               convolution matrix dimensions.  Thanks Prophet of the Way
               <afu@wta.att.ne.jp>.