1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/math/calc/files/patch-ac
Brian Feldman fbaa8ebc9c Fix some bugs that I guess I helped in :)
o Make the Makefile respect CC, and respect CFLAGS when linking, too.
 o Make a comparison for fputs() success "retval >= 0".  Our manual says
   fputs() returns 0 on success, but K&R says that it can return any non-
   negative int on success.  I might as well support either!
 o Fix an improper bounds check.  It was a simple case of a variable being
   mixed up, and this prevents "calc really long arg list (REALLY LONG)"
   from crashing calc.

This is just cleaning up the changes I effected earlier with the
maintainer's permission.
2000-02-06 06:32:33 +00:00

12 lines
272 B
Plaintext

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