diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-01-29 04:19:22 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-01-29 04:19:22 +0000 |
commit | 23f5ae1861b268c4adcdaec6657406328dfdf811 (patch) | |
tree | 2dbb6a655764b3684f6d2877e3323a03ee00f623 /converter/ppm/ilbmtoppm.c | |
parent | 3976c04edc6d4bdb583875176e06f93fc23d869f (diff) | |
download | netpbm-mirror-23f5ae1861b268c4adcdaec6657406328dfdf811.tar.gz netpbm-mirror-23f5ae1861b268c4adcdaec6657406328dfdf811.tar.xz netpbm-mirror-23f5ae1861b268c4adcdaec6657406328dfdf811.zip |
Release 10.35.59
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@832 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/ilbmtoppm.c')
-rw-r--r-- | converter/ppm/ilbmtoppm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/ppm/ilbmtoppm.c b/converter/ppm/ilbmtoppm.c index fafbd005..c88cdfb2 100644 --- a/converter/ppm/ilbmtoppm.c +++ b/converter/ppm/ilbmtoppm.c @@ -1675,7 +1675,7 @@ PCHG_Decompress(PCHG, CompHdr, compdata, compsize, comptree, data) #endif /* turn big-endian 2-byte shorts into native format */ huffsize = treesize/2; - MALLOCVAR_NOFAIL(hufftree); + MALLOCARRAY_NOFAIL(hufftree, huffsize); for( i = 0; i < huffsize; i++ ) { hufftree[i] = (short)BIG_WORD(comptree); comptree += 2; @@ -1932,7 +1932,7 @@ read_pchg(FILE * const ifp, get_big_long(ifp, iffid, &remainingChunksize); treesize = CompHdr.CompInfoSize; - MALLOCVAR_NOFAIL(comptree); + MALLOCARRAY_NOFAIL(comptree, treesize); read_bytes(ifp, treesize, comptree, iffid, &remainingChunksize); compsize = remainingChunksize; |