about summary refs log tree commit diff
path: root/converter/other
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-06-08 01:19:18 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-06-08 01:19:18 +0000
commita2da607bd4eed604a9e7d59528886b24de27222f (patch)
treed706edb7c4ee27a4fd2739831836c9987be8f799 /converter/other
parent67e41068ab7531b3bd5bf40036d0d9a36071d036 (diff)
downloadnetpbm-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-xconverter/other/anytopnm2
-rw-r--r--converter/other/pamtohtmltbl.c6
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;
 }