diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-08 01:46:46 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-08 01:46:46 +0000 |
commit | 422ccbc25ce3b7ea51c99c01b6bc2987c5b0f90c (patch) | |
tree | d7737c0590f1ed0de63554ceeb6790cd6d3e1e7d /games/adventure/main.c | |
parent | f0ee9982a14a4c2c750327959c8f812780b87708 (diff) |
Change remaining strcpy -> strlcpy; noticed by Theo
Diffstat (limited to 'games/adventure/main.c')
-rw-r--r-- | games/adventure/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/adventure/main.c b/games/adventure/main.c index 139023ca19a..938461e64ab 100644 --- a/games/adventure/main.c +++ b/games/adventure/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.14 2003/04/07 18:19:37 millert Exp $ */ +/* $OpenBSD: main.c,v 1.15 2003/04/08 01:46:45 millert Exp $ */ /* $NetBSD: main.c,v 1.5 1996/05/21 21:53:09 mrg Exp $ */ /*- @@ -49,7 +49,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.14 2003/04/07 18:19:37 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.15 2003/04/08 01:46:45 millert Exp $"; #endif #endif /* not lint */ @@ -245,7 +245,7 @@ l19999: k = 43; || (!weq(wd2, "plant") && !weq(wd2, "door"))) goto l2610; if (at(vocab(wd2, 1, 0))) - strcpy(wd2, "pour"); + strlcpy(wd2, "pour", sizeof(wd2)); l2610: if (weq(wd1, "west")) if (++iwest == 10) |