From: espie Date: Mon, 10 Apr 2000 17:16:30 +0000 (+0000) Subject: Thinko in dobuiltin. Reported by turan@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4ce5ccb9c12b369918894a099edbe067570645cd;p=openbsd Thinko in dobuiltin. Reported by turan@ --- 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]); }