diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-03-03 18:46:44 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-03-03 18:46:44 +0000 |
commit | 12d58ab7cc07b8489f4ca1e83b47b2569c6331da (patch) | |
tree | 664badf108b5244444d2dde59e14068396bac187 | |
parent | 82972ce89087dbb30496a67ea6dc6be4c7a5f1d7 (diff) | |
download | netpbm-mirror-12d58ab7cc07b8489f4ca1e83b47b2569c6331da.tar.gz netpbm-mirror-12d58ab7cc07b8489f4ca1e83b47b2569c6331da.tar.xz netpbm-mirror-12d58ab7cc07b8489f4ca1e83b47b2569c6331da.zip |
fix crash with -mapfile
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@242 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pamtogif.c | 3 | ||||
-rw-r--r-- | doc/HISTORY | 2 |
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. |