1 diff -urN bsd-finger-0.17/finger/util.c bsd-finger-0.17.patch/finger/util.c
2 --- bsd-finger-0.17/finger/util.c Wed Sep 29 00:53:58 1999
3 +++ bsd-finger-0.17.patch/finger/util.c Wed May 9 16:47:17 2001
9 - pn->realname = rname;
13 + rname = (char*) malloc(sizeof(char));
14 + if (rname == NULL) {
15 + eprintf("finger: Out of space.\n");
21 + pn->realname = rname;
22 pn->office = fields[1] ? strdup(fields[1]) : NULL;
23 pn->officephone = fields[2] ? strdup(fields[2]) : NULL;
24 pn->homephone = fields[3] ? strdup(fields[3]) : NULL;