summaryrefslogtreecommitdiffstats
path: root/source/n/bsd-finger/bsd-finger-0.16-allocbroken.patch
blob: 84519c3430eb4bff00aaa5cbb69053978e5fbd2e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 {