about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/pamtogif.c3
-rw-r--r--doc/HISTORY2
2 files changed, 4 insertions, 1 deletions
diff --git a/converter/other/pamtogif.c b/converter/other/pamtogif.c
index 7b27e571..27f1d36f 100644
--- a/converter/other/pamtogif.c
+++ b/converter/other/pamtogif.c
@@ -1644,7 +1644,8 @@ colormapFromFile(char               const filespec[],
 
     pm_message("computing other colormap ...");
     
-    pnm_computetuplefreqtable(mapPamP, colors, maxcolors, &colorCount);
+    *tupletableP =
+        pnm_computetuplefreqtable(mapPamP, colors, maxcolors, &colorCount);
 
     *colorCountP = colorCount;
 
diff --git a/doc/HISTORY b/doc/HISTORY
index d5e79c5c..23f1a0f5 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -34,6 +34,8 @@ not yet  BJH  Release 10.38.0
 
               libnetpbm: Embellish "bad magic number" error message.
 
+              pamtogif: fix crash with -mapfile.
+
               pamtoxvmini: fix bug: produces garbage when maxval is
               not 255.