diff options
Diffstat (limited to 'converter/pbm/brushtopbm.c')
-rw-r--r-- | converter/pbm/brushtopbm.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/converter/pbm/brushtopbm.c b/converter/pbm/brushtopbm.c index ebd817be..63cd0d04 100644 --- a/converter/pbm/brushtopbm.c +++ b/converter/pbm/brushtopbm.c @@ -26,7 +26,7 @@ getinit(FILE * const ifP, bytesRead = fread(header, sizeof(header), 1, ifP); if (bytesRead !=1) - pm_error("Error reading header"); + pm_error("Error reading header"); if (header[0] != 1) pm_error("bad magic number 1"); @@ -49,6 +49,7 @@ validateEof(FILE * const ifP) { } + /* The routine for converting the raster closely resembles the pbm case of pnminvert. Input is padded up to 16 bit border. @@ -85,7 +86,7 @@ main(int argc, const char ** argv) { unsigned int i; size_t bytesRead; - bytesRead = fread (bitrow, 1, inRowBytes, ifP); + bytesRead = fread (bitrow, 1, inRowBytes, ifP); if (bytesRead != inRowBytes) pm_error("Error reading a row of data from brushfile"); @@ -102,6 +103,9 @@ main(int argc, const char ** argv) { pm_close(ifP); pm_close(stdout); - + return 0; } + + + |