From 25a20d1f0ecf2720546055620a7008d96a011e50 Mon Sep 17 00:00:00 2001 From: jb Date: Wed, 13 May 1998 05:50:42 +0000 Subject: Fix broken (at least on alpha, but probably on i386 too) code which is supposed to walk an arry of character pointers, not an array of characters. --- usr.bin/make/compat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index 5e12a0f..ce156cf 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -35,7 +35,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: compat.c,v 1.8 1997/02/22 19:27:07 peter Exp $ + * $Id: compat.c,v 1.9 1998/05/12 11:54:12 wosch Exp $ */ #ifndef lint @@ -149,12 +149,12 @@ static int shellneed (cmd) char *cmd; { - char **av, *p; + char **av, **p; int ac; av = brk_string(cmd, &ac, TRUE); - for(p = *sh_builtin; p != 0; p++) - if (strcmp(av[1], p) == 0) + for(p = sh_builtin; *p != 0; p++) + if (strcmp(av[1], *p) == 0) return (1); return (0); } -- cgit v1.1