diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2003-04-05 14:42:12 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2003-04-05 14:42:12 +0000 |
commit | bee95b770b534635d55d823d4096634687dabde1 (patch) | |
tree | 5333e2d53eb2f769dbe9f627e659b95bd8587713 /usr.bin/m4 | |
parent | fbea5dd7abe438a3b997fbe6fff6c48f3c6d2d23 (diff) |
say goodbye to strcpy, okay deraadt@
Diffstat (limited to 'usr.bin/m4')
-rw-r--r-- | usr.bin/m4/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c index 951863936a4..6fc972c6a8d 100644 --- a/usr.bin/m4/eval.c +++ b/usr.bin/m4/eval.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eval.c,v 1.45 2002/04/28 14:37:12 espie Exp $ */ +/* $OpenBSD: eval.c,v 1.46 2003/04/05 14:42:11 espie Exp $ */ /* $NetBSD: eval.c,v 1.7 1996/11/10 21:21:29 pk Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)eval.c 8.2 (Berkeley) 4/27/95"; #else -static char rcsid[] = "$OpenBSD: eval.c,v 1.45 2002/04/28 14:37:12 espie Exp $"; +static char rcsid[] = "$OpenBSD: eval.c,v 1.46 2003/04/05 14:42:11 espie Exp $"; #endif #endif /* not lint */ @@ -799,7 +799,7 @@ dochq(const char *argv[], int argc) if (*argv[3]) strlcpy(rquote, argv[3], sizeof(rquote)); } else - strcpy(rquote, lquote); + strlcpy(rquote, lquote, sizeof(rquote)); } else { lquote[0] = LQUOTE, lquote[1] = EOS; rquote[0] = RQUOTE, rquote[1] = EOS; |