about summary refs log tree commit diff
path: root/converter/other/avstopam.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/other/avstopam.c')
-rw-r--r--converter/other/avstopam.c10
1 files changed, 5 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);
     }