summaryrefslogtreecommitdiff
path: root/contrib/awk/node.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1997-10-23 02:03:43 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1997-10-23 02:03:43 +0000
commit833c9488dd44d8896114eb3295cd3c484ae8aeb5 (patch)
treebf2cdfda2ebba4ca6083641af773f2745853f651 /contrib/awk/node.c
parent483b9871ba6cd9c441171746ff84e2f15438c141 (diff)
Notes
Diffstat (limited to 'contrib/awk/node.c')
-rw-r--r--contrib/awk/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/awk/node.c b/contrib/awk/node.c
index 6f10b9f3c6d4..98df14358f4c 100644
--- a/contrib/awk/node.c
+++ b/contrib/awk/node.c
@@ -61,9 +61,9 @@ register NODE *n;
return 0.0;
cpend = cp + n->stlen;
- while (cp < cpend && isspace(*cp))
+ while (cp < cpend && isspace((unsigned char)*cp))
cp++;
- if (cp == cpend || isalpha(*cp))
+ if (cp == cpend || isalpha((unsigned char)*cp))
return 0.0;
if (n->flags & MAYBE_NUM) {
@@ -489,7 +489,7 @@ char **string_ptr;
}
if (do_posix)
return ('x');
- if (! isxdigit((*string_ptr)[0])) {
+ if (! isxdigit((unsigned char)(*string_ptr)[0])) {
warning("no hex digits in \\x escape sequence");
return ('x');
}