=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/cond.c,v retrieving revision 1.52 retrieving revision 1.53 diff -c -r1.52 -r1.53 *** src/usr.bin/make/cond.c 2017/06/21 00:11:36 1.52 --- src/usr.bin/make/cond.c 2017/12/19 20:44:53 1.53 *************** *** 1,4 **** ! /* $OpenBSD: cond.c,v 1.52 2017/06/21 00:11:36 espie Exp $ */ /* $NetBSD: cond.c,v 1.7 1996/11/06 17:59:02 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: cond.c,v 1.53 2017/12/19 20:44:53 zhuk Exp $ */ /* $NetBSD: cond.c,v 1.7 1996/11/06 17:59:02 christos Exp $ */ /* *************** *** 398,404 **** char *lhs; end = condExpr; ! while (!ISSPACE(*end) && strchr("!=><", *end) == NULL) end++; lhs = Str_dupi(condExpr, end); condExpr = end; --- 398,404 ---- char *lhs; end = condExpr; ! while (*end != '\0' && !ISSPACE(*end) && strchr("!=><", *end) == NULL) end++; lhs = Str_dupi(condExpr, end); condExpr = end; *************** *** 421,427 **** return Err; condExpr += varSpecLen; ! if (!ISSPACE(*condExpr) && strchr("!=><", *condExpr) == NULL) { BUFFER buf; --- 421,427 ---- return Err; condExpr += varSpecLen; ! if (*condExpr && !ISSPACE(*condExpr) && strchr("!=><", *condExpr) == NULL) { BUFFER buf;