aboutsummaryrefslogtreecommitdiff
path: root/math/calc
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2000-02-08 03:24:34 +0000
committerBrian Feldman <green@FreeBSD.org>2000-02-08 03:24:34 +0000
commitcee57053d38490955947ad5f73e7ed7269b5c1cd (patch)
tree765cdf33b1b81a1fb62b1da086b20f517652b32e /math/calc
parent78a76311f52b434a84ee73c784bb1941f66fd389 (diff)
Notes
Diffstat (limited to 'math/calc')
-rw-r--r--math/calc/files/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/math/calc/files/patch-ae b/math/calc/files/patch-ae
new file mode 100644
index 000000000000..241bead76932
--- /dev/null
+++ b/math/calc/files/patch-ae
@@ -0,0 +1,18 @@
+--- lib_calc.c.orig Mon Feb 7 22:08:08 2000
++++ lib_calc.c Mon Feb 7 22:10:42 2000
+@@ -407,9 +407,13 @@
+ if (ent == NULL) {
+ /* just assume . is home if all else fails */
+ home = ".";
++ } else {
++ home = (char *)malloc(strlen(ent->pw_dir)+1);
++ if (home == NULL)
++ home = ".";
++ else
++ strcpy(home, ent->pw_dir);
+ }
+- home = (char *)malloc(strlen(ent->pw_dir)+1);
+- strcpy(home, ent->pw_dir);
+ }
+
+ /* determine the $PAGER value */