commit 93bd2c0c60fdcbb15935c227eea71d0428bbf45e parent 661ad08602a1879a599b810c8b2c5711859c3b91 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sat, 29 Dec 2012 13:01:03 +0100 fix infinite loop on exit Diffstat:
hebraize.c | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/hebraize.c b/hebraize.c @@ -251,6 +251,8 @@ dooutput() for (;;) { cc = read(master, obuf, BUFSIZ); + if (cc <= 0) + break; ncc = 0; for (i = 0; i < cc; i++) { char c = obuf[i];