diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-31 21:34:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-08-31 21:34:19 +0000 |
commit | fc9150c851d192d3fc69eaeed76aa721bd0bc457 (patch) | |
tree | c86a31d2a726d6f18c3b918e3a717320fba747f2 /usr.bin/m4/eval.c | |
parent | 15833b196e38ea6ae1cd728ece8b729cd7692ff4 (diff) |
wish i had tested
Diffstat (limited to 'usr.bin/m4/eval.c')
-rw-r--r-- | usr.bin/m4/eval.c | 12 |
1 files changed, 7 insertions, 5 deletions
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); |