diff options
author | 1997-08-31 21:34:18 +0000 | |
---|---|---|
committer | 1997-08-31 21:34:18 +0000 | |
commit | 18a1973baed6e958e9c551843db04598089fee8a (patch) | |
tree | 9731eb119cfab3a5f57a5e6d5b9fac02309f1b42 | |
parent | from jlemon@freebsd; divnum is no longer silently restricted to the (diff) | |
download | wireguard-openbsd-18a1973baed6e958e9c551843db04598089fee8a.tar.xz wireguard-openbsd-18a1973baed6e958e9c551843db04598089fee8a.zip |
wish i had tested
-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); |