From fc9150c851d192d3fc69eaeed76aa721bd0bc457 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 31 Aug 1997 21:34:19 +0000 Subject: wish i had tested --- usr.bin/m4/eval.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'usr.bin/m4/eval.c') diff --git a/usr.bin/m4/eval.c b/usr.bin/m4/eval.c index 4ef450e26ef..d5abbbaa76c 100644 --- a/usr.bin/m4/eval.c +++ b/usr.bin/m4/eval.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eval.c,v 1.8 1997/08/31 21:33:26 deraadt Exp $ */ +/* $OpenBSD: eval.c,v 1.9 1997/08/31 21:34:18 deraadt 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.8 1997/08/31 21:33:26 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: eval.c,v 1.9 1997/08/31 21:34:18 deraadt Exp $"; #endif #endif /* not lint */ @@ -626,10 +626,12 @@ register char *argv[]; register int argc; { if (argc > 2) { - if (*argv[2]) { + if (*argv[2]) strncpy(lquote, argv[2], MAXCCHARS); - else - strncpy(lquote, LQUOTE, MAXCCHARS); + else { + lquote[0] = LQUOTE; + lquote[1] = '\0'; + } if (argc > 3) { if (*argv[3]) strncpy(rquote, argv[3], MAXCCHARS); -- cgit v1.2.3