summaryrefslogtreecommitdiff
path: root/math/calc/files/patch-ad
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-02-06 06:32:33 +0000
committerBrian Feldman <green@FreeBSD.org>2000-02-06 06:32:33 +0000
commitfbaa8ebc9c9ce6c572aab77e2fa0b76024aa5218 (patch)
tree7d116ab15049f5d8ff8e0a47a51d7e6cebf53f5e /math/calc/files/patch-ad
parentFix bug: mirroring crypto/non-crypto from different sources was broken. (diff)
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.
Notes
Notes: svn path=/head/; revision=25509
Diffstat (limited to 'math/calc/files/patch-ad')
-rw-r--r--math/calc/files/patch-ad11
1 files changed, 11 insertions, 0 deletions
diff --git a/math/calc/files/patch-ad b/math/calc/files/patch-ad
new file mode 100644
index 000000000000..0f8af0eaf01d
--- /dev/null
+++ b/math/calc/files/patch-ad
@@ -0,0 +1,11 @@
+--- calc.c.orig Sun Feb 6 00:53:48 2000
++++ calc.c Sun Feb 6 00:57:01 2000
+@@ -233,7 +233,7 @@
+ /* argument + space separator */
+ cmdlen += strlen(argv[i]) + 1;
+ }
+- if (i > MAXCMD) {
++ if (cmdlen > MAXCMD) {
+ /*
+ * we are too early in processing to call
+ * libcalc_call_me_last() - nothing to cleanup