From 4ce5ccb9c12b369918894a099edbe067570645cd Mon Sep 17 00:00:00 2001 From: espie Date: Mon, 10 Apr 2000 17:16:30 +0000 Subject: [PATCH] Thinko in dobuiltin. Reported by turan@ --- usr.bin/m4/gnum4.c | 4 ++-- 1 file 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]); } -- 2.20.1