about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pamtogif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c
index 9e19086d..2f6b0957 100644
--- a/converter/other/pamtogif.c
+++ b/converter/other/pamtogif.c
@@ -1416,7 +1416,7 @@ writeGlobalColorMap(FILE *              const ofP,
     pam = cmapP->pam;
     pam.size = PAM_STRUCT_SIZE(allocation_depth);
     pam.len = pam.size;
-    pam.allocation_depth = 3;
+    pnm_setminallocationdepth(&pam, 3);
 
     tupleRgb255 = pnm_allocpamtuple(&pam);