diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-11-24 22:05:21 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2013-11-24 22:05:21 +0000 |
commit | 4534ad8e87afa36c974140c97fe62b1523abeccc (patch) | |
tree | 9dc1dc37363e54fb5f7f8e34ed427684a0978f0d | |
parent | 52da16976da4d738c8a0bdd35959af91ff5ae0bf (diff) | |
download | netpbm-mirror-4534ad8e87afa36c974140c97fe62b1523abeccc.tar.gz netpbm-mirror-4534ad8e87afa36c974140c97fe62b1523abeccc.tar.xz netpbm-mirror-4534ad8e87afa36c974140c97fe62b1523abeccc.zip |
Fix bug: wrong output with -rle; line accidentally deleted when writeFile() introduced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2037 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/pnmtops.c | 6 | ||||
-rw-r--r-- | doc/HISTORY | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/converter/other/pnmtops.c b/converter/other/pnmtops.c index 5f5fcd7f..5efd5321 100644 --- a/converter/other/pnmtops.c +++ b/converter/other/pnmtops.c @@ -602,8 +602,10 @@ rlePutBuffer (unsigned int const repeat, if (repeat) { fputc(257 - count, fP); fputc(repeatitem, fP); - } else + } else { + fputc(count - 1, fP); writeFile(itembuf, count, "rlePutBuffer", fP); + } } @@ -1011,7 +1013,7 @@ waitForChildren(const pid_t * const pidList) { -----------------------------------------------------------------------------*/ /* There's an odd behavior in Unix such that if you have set the action for SIGCHLD to ignore the signal (even though ignoring the - siganl is the default), the process' children do not become + signal is the default), the process' children do not become zombies. Consequently, waitpid() always fails with ECHILD - but nonetheless waits for the child to exit. diff --git a/doc/HISTORY b/doc/HISTORY index a6ef0d3a..a3effd50 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -12,6 +12,9 @@ not yet BJH Release 10.65.00 pnmtops: Fix bug: wrong output with -ascii85. Introduced in 10.63 (June 2013). + pnmtops: Fix bug: wrong output with -rle. Introduced in + 10.63 (June 2013). + pnmtops: Fix bug: program hangs if it inherits lots of open files. Introduced in 10.56 (September 2011). |