diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:19:18 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-06-08 01:19:18 +0000 |
commit | a2da607bd4eed604a9e7d59528886b24de27222f (patch) | |
tree | d706edb7c4ee27a4fd2739831836c9987be8f799 /converter/other | |
parent | 67e41068ab7531b3bd5bf40036d0d9a36071d036 (diff) | |
download | netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.tar.gz netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.tar.xz netpbm-mirror-a2da607bd4eed604a9e7d59528886b24de27222f.zip |
Release 10.35.45
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@642 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rwxr-xr-x | converter/other/anytopnm | 2 | ||||
-rw-r--r-- | converter/other/pamtohtmltbl.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/converter/other/anytopnm b/converter/other/anytopnm index 6c56b5ef..b2873772 100755 --- a/converter/other/anytopnm +++ b/converter/other/anytopnm @@ -528,7 +528,7 @@ putInputIntoTempfile "$inputFile" "$file" setMimeType "$file" -typeDescription=`file "$file" | cut -d: -f2- | cut -c2` +typeDescription=`file "$file" | cut -d: -f2- | cut -c2-` determineType "$file" "$mimeType" "$typeDescription" "$fileExtension" diff --git a/converter/other/pamtohtmltbl.c b/converter/other/pamtohtmltbl.c index 293badcb..0afbfea0 100644 --- a/converter/other/pamtohtmltbl.c +++ b/converter/other/pamtohtmltbl.c @@ -180,9 +180,15 @@ allocOutputtedArray(unsigned int const width, unsigned int const height) { pm_error("Unable to allocate space for 'outputted' array"); for (row = 0; row < height; ++row) { + unsigned int col; + MALLOCARRAY(outputted[row], width); if (outputted[row] == NULL) pm_error("Unable to allocate space for 'outputted' array"); + + for (col = 0; col < width ; ++col) + outputted[row][col] = FALSE; + } return outputted; } |