diff options
Diffstat (limited to 'games/hack/hack.u_init.c')
-rw-r--r-- | games/hack/hack.u_init.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/games/hack/hack.u_init.c b/games/hack/hack.u_init.c index ddb617c9f0b..a1642e5eba4 100644 --- a/games/hack/hack.u_init.c +++ b/games/hack/hack.u_init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.u_init.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $ */ +/* $OpenBSD: hack.u_init.c,v 1.8 2003/07/06 02:07:45 avsm Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -62,7 +62,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: hack.u_init.c,v 1.7 2003/05/19 06:30:56 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: hack.u_init.c,v 1.8 2003/07/06 02:07:45 avsm Exp $"; #endif /* not lint */ #include <ctype.h> @@ -244,8 +244,7 @@ beginner: got_suffix: - (void) strncpy(pl_character, roles[i], PL_CSIZ-1); - pl_character[PL_CSIZ-1] = 0; + (void) strlcpy(pl_character, roles[i], sizeof pl_character); flags.beginner = 1; u = zerou; u.usym = '@'; |