From 12d58ab7cc07b8489f4ca1e83b47b2569c6331da Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 3 Mar 2007 18:46:44 +0000 Subject: fix crash with -mapfile git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@242 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pamtogif.c | 3 ++- doc/HISTORY | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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. -- cgit 1.4.1