diff options
| author | christos <christos@NetBSD.org> | 1998-09-18 20:15:36 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1998-09-18 20:15:36 +0000 |
| commit | aed39ca72c9c86102a54b4cb378276d374ce08cd (patch) | |
| tree | 982c15f4815f05d698d25e13b6013d575225856c /usr.bin/make/parse.c | |
| parent | 1e2aeb4a3528dfc1cc65a28c28861ac731addb0f (diff) | |
PR/6174: ITOH Yasufumi: Purify bug and a compile error in utility code.
Diffstat (limited to 'usr.bin/make/parse.c')
| -rw-r--r-- | usr.bin/make/parse.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 5749b3f7350..d03a239c878 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -1,4 +1,4 @@ -/* $NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $ */ +/* $NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1993 @@ -39,14 +39,14 @@ */ #ifdef MAKE_BOOTSTRAP -static char rcsid[] = "$NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $"; +static char rcsid[] = "$NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $"; #else #include <sys/cdefs.h> #ifndef lint #if 0 static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94"; #else -__RCSID("$NetBSD: parse.c,v 1.38 1998/08/06 13:42:22 christos Exp $"); +__RCSID("$NetBSD: parse.c,v 1.39 1998/09/18 20:15:36 christos Exp $"); #endif #endif /* not lint */ #endif @@ -1486,9 +1486,8 @@ Parse_DoVar (line, ctxt) default: #ifdef SUNSHCMD - while (*opc != ':') - if (--opc < line) - break; + while (opc > line && *opc != ':') + opc--; if (strncmp(opc, ":sh", 3) == 0) { type = VAR_SHELL; |
