-/* $NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $ */
+/* $NetBSD: score.c,v 1.18 2006/03/17 23:11:47 abs Exp $ */
/*
* Copyright (c) 1980, 1993
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the University of
- * California, Berkeley and its contributors.
- * 4. Neither the name of the University nor the names of its contributors
+ * 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.15 2000/04/27 19:31:23 thorpej Exp $");
+__RCSID("$NetBSD: score.c,v 1.18 2006/03/17 23:11:47 abs Exp $");
#endif
#endif /* not lint */
static u_int32_t numscores, max_uid;
-static void read_score __P((int));
-static void write_score __P((int));
+static void read_score(int);
+static void write_score(int);
/*
* read_score:
SCORE *scp;
{
PASSWD *pp;
- static char unknown[] = "???";
if ((pp = getpwuid(scp->s_uid)) == NULL)
- pp->pw_name = unknown;
- strncpy(scp->s_name, pp->pw_name, MAXNAME);
+ strncpy(scp->s_name, "???", MAXNAME);
+ else
+ strncpy(scp->s_name, pp->pw_name, MAXNAME);
}
/*