=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/who/who.c,v retrieving revision 1.12 retrieving revision 1.13 diff -c -r1.12 -r1.13 *** src/usr.bin/who/who.c 2002/02/16 21:27:59 1.12 --- src/usr.bin/who/who.c 2003/04/07 21:14:28 1.13 *************** *** 1,4 **** ! /* $OpenBSD: who.c,v 1.12 2002/02/16 21:27:59 millert Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: who.c,v 1.13 2003/04/07 21:14:28 deraadt Exp $ */ /* $NetBSD: who.c,v 1.4 1994/12/07 04:28:49 jtc Exp $ */ /* *************** *** 47,53 **** #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.12 2002/02/16 21:27:59 millert Exp $"; #endif /* not lint */ #include --- 47,53 ---- #if 0 static char sccsid[] = "@(#)who.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: who.c,v 1.13 2003/04/07 21:14:28 deraadt Exp $"; #endif /* not lint */ #include *************** *** 208,214 **** /* well, at least we know what the tty is */ (void)strncpy(usr.ut_line, p, UT_LINESIZE); } else ! (void)strcpy(usr.ut_line, "tty??"); pw = getpwuid(getuid()); (void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE); --- 208,214 ---- /* well, at least we know what the tty is */ (void)strncpy(usr.ut_line, p, UT_LINESIZE); } else ! (void)strncpy(usr.ut_line, "tty??", UT_LINESIZE); pw = getpwuid(getuid()); (void)strncpy(usr.ut_name, pw ? pw->pw_name : "?", UT_NAMESIZE);