about summary refs log tree commit diff
path: root/editor/pamdice.c
diff options
context:
space:
mode:
Diffstat (limited to 'editor/pamdice.c')
-rw-r--r--editor/pamdice.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/pamdice.c b/editor/pamdice.c
index 9063c4bd..58e24e5b 100644
--- a/editor/pamdice.c
+++ b/editor/pamdice.c
@@ -227,12 +227,14 @@ computeOutputFilenameFormat(int           const format,
 
     const char * filenameSuffix;
 
-    switch(PNM_FORMAT_TYPE(format)) {
+    switch(PAM_FORMAT_TYPE(format)) {
     case PPM_TYPE: filenameSuffix = "ppm"; break;
     case PGM_TYPE: filenameSuffix = "pgm"; break;
     case PBM_TYPE: filenameSuffix = "pbm"; break;
     case PAM_TYPE: filenameSuffix = "pam"; break;
-    default:       filenameSuffix = "";    break;
+    default:
+        pm_error("INTERNAL ERROR: impossible value for libnetpbm image "
+                 "fomat code: %d", format);
     }
 
     pm_asprintf(filenameFormatP, "%%s_%%0%uu_%%0%uu.%s",