summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2003-04-07 00:34:16 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2003-04-07 00:34:16 +0000
commit2f2d0a26cc415e1a04c84188bb0519d5b1ec64bb (patch)
tree7892322d03bc91ead2234767f1e39167c5c91f8c /games
parent6a035e8985eff2b707c468b5b7655adeff2db97f (diff)
strlcpy -- ok tedu@, deraadt@, millert@
Diffstat (limited to 'games')
-rw-r--r--games/boggle/boggle/bog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/boggle/boggle/bog.c b/games/boggle/boggle/bog.c
index dedca1428a1..8618e77fd62 100644
--- a/games/boggle/boggle/bog.c
+++ b/games/boggle/boggle/bog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bog.c,v 1.11 2002/12/06 21:48:51 millert Exp $ */
+/* $OpenBSD: bog.c,v 1.12 2003/04/07 00:34:15 tdeval Exp $ */
/* $NetBSD: bog.c,v 1.5 1995/04/24 12:22:32 cgd Exp $ */
/*-
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)bog.c 8.1 (Berkeley) 6/11/93";
#else
-static char rcsid[] = "$OpenBSD: bog.c,v 1.11 2002/12/06 21:48:51 millert Exp $";
+static char rcsid[] = "$OpenBSD: bog.c,v 1.12 2003/04/07 00:34:15 tdeval Exp $";
#endif
#endif /* not lint */
@@ -373,7 +373,8 @@ playgame()
exit(1);
}
pword[npwords++] = pwordsp;
- (void) strcpy(pwordsp, buf);
+ strlcpy(pwordsp, buf,
+ pwords + sizeof pwords - pwordsp);
pwordsp += len;
addword(buf);
}