summaryrefslogtreecommitdiff
path: root/usr.bin/m4
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 16:44:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-20 16:44:28 +0000
commitdc9f33ebc46c395ea2acf8138c35637c92c59be6 (patch)
treee740cdbe5e1959f0aa0bd78bb1dbd5132810055c /usr.bin/m4
parent89b3df9043414c2a9b247d203828b8d46b642b26 (diff)
repair signed char vs isdigit
ok espie
Diffstat (limited to 'usr.bin/m4')
-rw-r--r--usr.bin/m4/gnum4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/m4/gnum4.c b/usr.bin/m4/gnum4.c
index 4c8010cbcbc..a1070334a60 100644
--- a/usr.bin/m4/gnum4.c
+++ b/usr.bin/m4/gnum4.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gnum4.c,v 1.42 2011/11/06 12:25:43 espie Exp $ */
+/* $OpenBSD: gnum4.c,v 1.43 2013/11/20 16:44:27 deraadt Exp $ */
/*
* Copyright (c) 1999 Marc Espie
@@ -294,7 +294,7 @@ add_replace(const char *string, regex_t *re, const char *replace, regmatch_t *pm
p++;
continue;
}
- if (isdigit(p[1])) {
+ if (isdigit((unsigned char)p[1])) {
add_sub(*(++p) - '0', string, re, pm);
continue;
}