diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-06 02:07:46 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-07-06 02:07:46 +0000 |
commit | 428205dfb2d9eb6cc21ad67ca83998115e665458 (patch) | |
tree | 68cccf0308046dc6bca823670194fdb2d8c98a8d /games/hack/hack.shknam.c | |
parent | 9e3628d296cdd659839a7b772c967f101c2d6efd (diff) |
convert a bunch of strn{cpy,cat}->strl{cpy,cat}
pjanzen@ ok
Diffstat (limited to 'games/hack/hack.shknam.c')
-rw-r--r-- | games/hack/hack.shknam.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/games/hack/hack.shknam.c b/games/hack/hack.shknam.c index e792f601198..4a7aa133e73 100644 --- a/games/hack/hack.shknam.c +++ b/games/hack/hack.shknam.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.shknam.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $ */ +/* $OpenBSD: hack.shknam.c,v 1.7 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.shknam.c,v 1.6 2003/05/19 06:30:56 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: hack.shknam.c,v 1.7 2003/07/06 02:07:45 avsm Exp $"; #endif /* not lint */ #include "hack.h" @@ -200,8 +200,7 @@ findname(char *nampt, size_t len, char let) /* Not enough names, try general name */ if(let) findname(nampt, len, 0); else { - (void) strncpy(nampt, "Dirk", len-1); - nampt[len-1] = '\0'; + (void) strlcpy(nampt, "Dirk", len); } return; } |