summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2000-04-10 17:16:30 +0000
committerespie <espie@openbsd.org>2000-04-10 17:16:30 +0000
commit4ce5ccb9c12b369918894a099edbe067570645cd (patch)
tree6fa43e8efc0713113b98b57d9bc63a4be94b2679
parentregen (diff)
downloadwireguard-openbsd-4ce5ccb9c12b369918894a099edbe067570645cd.tar.xz
wireguard-openbsd-4ce5ccb9c12b369918894a099edbe067570645cd.zip
Thinko in dobuiltin. Reported by turan@
-rw-r--r--usr.bin/m4/gnum4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c
index b2d6374b483..eebb7d593d6 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gnum4.c,v 1.5 2000/03/11 15:54:44 espie Exp $ */
+/* $OpenBSD: gnum4.c,v 1.6 2000/04/10 17:16:30 espie Exp $ */
/*
* Copyright (c) 1999 Marc Espie
@@ -184,7 +184,7 @@ dobuiltin(argv, argc)
argv[1] = NULL;
n = builtin_type(argv[2]);
if (n != -1)
- eval(argv+1, argc, n);
+ eval(argv+1, argc-1, n);
else
errx(1, "unknown builtin %s", argv[2]);
}