summaryrefslogtreecommitdiff
path: root/games/hack/hack.u_init.c
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-07-06 02:07:46 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-07-06 02:07:46 +0000
commit428205dfb2d9eb6cc21ad67ca83998115e665458 (patch)
tree68cccf0308046dc6bca823670194fdb2d8c98a8d /games/hack/hack.u_init.c
parent9e3628d296cdd659839a7b772c967f101c2d6efd (diff)
convert a bunch of strn{cpy,cat}->strl{cpy,cat}
pjanzen@ ok
Diffstat (limited to 'games/hack/hack.u_init.c')
-rw-r--r--games/hack/hack.u_init.c7
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 = '@';