summaryrefslogtreecommitdiffstats
path: root/source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch')
-rw-r--r--source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch b/source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch
new file mode 100644
index 000000000..84519c343
--- /dev/null
+++ b/source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch
@@ -0,0 +1,18 @@
+--- bsd-finger-0.16/finger/util.c.broken Wed May 31 16:56:46 2000
++++ bsd-finger-0.16/finger/util.c Wed May 31 16:57:45 2000
+@@ -350,6 +350,7 @@
+ eprintf("finger: Out of space.\n");
+ exit(1);
+ }
++ memset(p, 0, sizeof(PERSON));
+ return(p);
+ }
+
+@@ -362,6 +363,7 @@
+ eprintf("finger: Out of space.\n");
+ exit(1);
+ }
++ memset(w, 0, sizeof(WHERE));
+ if (pn->whead == NULL)
+ pn->whead = pn->wtail = w;
+ else {