diff options
author | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-27 21:27:01 +0000 |
---|---|---|
committer | Thierry Deval <tdeval@cvs.openbsd.org> | 2003-04-27 21:27:01 +0000 |
commit | 7058776ff77ae109959e2885724d1b84d06f94db (patch) | |
tree | b5a4906832322ea8341e975e56743a09f6f9c531 /games | |
parent | e8b9c92fbb46a189fac040b985f1255bd798cfec (diff) |
strcpy -> strlcpy
Diffstat (limited to 'games')
-rw-r--r-- | games/rogue/room.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/rogue/room.c b/games/rogue/room.c index bc9c62c970a..437f0cc0041 100644 --- a/games/rogue/room.c +++ b/games/rogue/room.c @@ -1,4 +1,4 @@ -/* $OpenBSD: room.c,v 1.5 2002/07/18 07:13:57 pjanzen Exp $ */ +/* $OpenBSD: room.c,v 1.6 2003/04/27 21:27:00 tdeval Exp $ */ /* $NetBSD: room.c,v 1.3 1995/04/22 10:28:17 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)room.c 8.1 (Berkeley) 5/31/93"; #else -static const char rcsid[] = "$OpenBSD: room.c,v 1.5 2002/07/18 07:13:57 pjanzen Exp $"; +static const char rcsid[] = "$OpenBSD: room.c,v 1.6 2003/04/27 21:27:00 tdeval Exp $"; #endif #endif /* not lint */ @@ -605,7 +605,8 @@ CH: * allocated to hold MAX_OPT_LEN+2 * bytes. This is arranged in init.c. */ - (void) strcpy(*(options[i].strval), buf); + (void) strlcpy(*(options[i].strval), + buf, MAX_OPT_LEN+2); } opt_show(i); goto CH; |