diff options
author | jb <jb@FreeBSD.org> | 1998-05-13 05:50:42 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-13 05:50:42 +0000 |
commit | 25a20d1f0ecf2720546055620a7008d96a011e50 (patch) | |
tree | ea463cfe4167c7e03047ddc8f22cb39d3d0d5036 /usr.bin/make | |
parent | ea57a1047fdd86ac3bdfdb750c65ba28ddefb674 (diff) | |
download | FreeBSD-src-25a20d1f0ecf2720546055620a7008d96a011e50.zip FreeBSD-src-25a20d1f0ecf2720546055620a7008d96a011e50.tar.gz |
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.
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/compat.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } |