diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2013-11-22 15:47:36 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2013-11-22 15:47:36 +0000 |
commit | 75507c78d7861d9f63c94d67de8af36b1e0966e4 (patch) | |
tree | 51051edc2a5e2bb9ecf21f32a070a3a9d81bca4c /usr.bin/make/suff.c | |
parent | 145b1560b2d928950b6df2b734ab11c47b57c9d8 (diff) |
wrappers for is*/to* that make damn sure their arguments are
cast to unsigned chars.
okay deraadt@
Diffstat (limited to 'usr.bin/make/suff.c')
-rw-r--r-- | usr.bin/make/suff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/suff.c b/usr.bin/make/suff.c index cac518e16a7..618c64febb6 100644 --- a/usr.bin/make/suff.c +++ b/usr.bin/make/suff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: suff.c,v 1.85 2013/04/23 14:32:53 espie Exp $ */ +/* $OpenBSD: suff.c,v 1.86 2013/11/22 15:47:35 espie Exp $ */ /* $NetBSD: suff.c,v 1.13 1996/11/06 17:59:25 christos Exp $ */ /* @@ -971,13 +971,13 @@ SuffExpandVarChildren(LstNode after, GNode *cgn, GNode *pgn) for (start = cp; *start == ' ' || *start == '\t'; start++) continue; for (cp2 = start; *cp2 != '\0';) { - if (isspace(*cp2)) { + if (ISSPACE(*cp2)) { /* White-space -- terminate element, find the * node, add it, skip any further spaces. */ gn = Targ_FindNodei(start, cp2, TARG_CREATE); cp2++; Lst_AtEnd(&members, gn); - while (isspace(*cp2)) + while (ISSPACE(*cp2)) cp2++; /* Adjust cp2 for increment at start of loop, * but set start to first non-space. */ |