summaryrefslogtreecommitdiff
path: root/Build/source/texk/psutils/psutils-1.23/psselect.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/psutils/psutils-1.23/psselect.c')
-rw-r--r--Build/source/texk/psutils/psutils-1.23/psselect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Build/source/texk/psutils/psutils-1.23/psselect.c b/Build/source/texk/psutils/psutils-1.23/psselect.c
index 9440f0bb95b..55a4d0e7b1e 100644
--- a/Build/source/texk/psutils/psutils-1.23/psselect.c
+++ b/Build/source/texk/psutils/psutils-1.23/psselect.c
@@ -43,9 +43,9 @@ static PageRange *addrange(char *str, PageRange *rp)
if(!str) return NULL;
sign = (*str == '_' && ++str) ? -1 : 1;
- if (isdigit(*str)) {
+ if (isdigit((unsigned char)*str)) {
first = sign*atoi(str);
- while (isdigit(*str)) str++;
+ while (isdigit((unsigned char)*str)) str++;
}
switch (*str) {
case '\0':
@@ -62,9 +62,9 @@ static PageRange *addrange(char *str, PageRange *rp)
sign = (*str == '_' && ++str) ? -1 : 1;
if (!first)
first = 1;
- if (isdigit(*str)) {
+ if (isdigit((unsigned char)*str)) {
int last = sign*atoi(str);
- while (isdigit(*str)) str++;
+ while (isdigit((unsigned char)*str)) str++;
if (*str == '\0')
return (makerange(first, last, rp));
if (*str == ',')