From aede170cb9701a1badfcded954c9e3a8f15a255f Mon Sep 17 00:00:00 2001 From: Brian Feldman Date: Sat, 25 Dec 1999 23:02:11 +0000 Subject: [PATCH] Bugfix for something noticed by jmz: $PAGER usage was broken due to incorrect usage of fputs(). --- math/calc/files/patch-ac | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 math/calc/files/patch-ac diff --git a/math/calc/files/patch-ac b/math/calc/files/patch-ac new file mode 100644 index 000000000000..d22cadb9b7bc --- /dev/null +++ b/math/calc/files/patch-ac @@ -0,0 +1,11 @@ +--- help.c.orig Sat Dec 25 17:57:30 1999 ++++ help.c Sat Dec 25 17:56:57 1999 +@@ -137,7 +137,7 @@ + /* + * write the line to pager, if possible + */ +- } while(fputs(buf, cmd) > 0); ++ } while (fputs(buf, cmd) == 0); + + /* + * all done, EOF or error, so just clean up