Bugfix for something noticed by jmz: $PAGER usage was broken due to

incorrect usage of fputs().
This commit is contained in:
Brian Feldman 1999-12-25 23:02:11 +00:00
parent 49cd649dd5
commit aede170cb9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=24092

11
math/calc/files/patch-ac Normal file
View file

@ -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