about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/ppm/ppmtoarbtxt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/ppm/ppmtoarbtxt.c b/converter/ppm/ppmtoarbtxt.c
index 75180b98..569f5ea2 100644
--- a/converter/ppm/ppmtoarbtxt.c
+++ b/converter/ppm/ppmtoarbtxt.c
@@ -563,7 +563,7 @@ validateFormatGen(const char *       const format,
              !validated && !*errorP;
              ++i) {
 
-            validateFormatOne(format[1], format[i+1] == '\0', ctyp,
+            validateFormatOne(format[i], format[i+1] == '\0', ctyp,
                               &validated, errorP);
         }
     }