summaryrefslogtreecommitdiff
path: root/Build/source/texk/psutils/psutils-1.23
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/psutils/psutils-1.23')
-rw-r--r--Build/source/texk/psutils/psutils-1.23/psselect.c8
-rw-r--r--Build/source/texk/psutils/psutils-1.23/psspec.c4
-rw-r--r--Build/source/texk/psutils/psutils-1.23/pstops.c2
-rw-r--r--Build/source/texk/psutils/psutils-1.23/psutil.c4
4 files changed, 9 insertions, 9 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 == ',')
diff --git a/Build/source/texk/psutils/psutils-1.23/psspec.c b/Build/source/texk/psutils/psutils-1.23/psspec.c
index e02e6ffd3f6..19a31a6408f 100644
--- a/Build/source/texk/psutils/psutils-1.23/psspec.c
+++ b/Build/source/texk/psutils/psutils-1.23/psspec.c
@@ -35,7 +35,7 @@ int parseint(char **sp)
char *s = *sp;
int num = atoi(s);
- while (isdigit(*s))
+ while (isdigit((unsigned char)*s))
s++;
if (*sp == s) argerror();
*sp = s;
@@ -47,7 +47,7 @@ double parsedouble(char **sp)
char *s = *sp;
double num = atof(s);
- while (isdigit(*s) || *s == '-' || *s == '.')
+ while (isdigit((unsigned char)*s) || *s == '-' || *s == '.')
s++;
if (*sp == s) argerror();
*sp = s;
diff --git a/Build/source/texk/psutils/psutils-1.23/pstops.c b/Build/source/texk/psutils/psutils-1.23/pstops.c
index c6b82b960ee..e37a0a27f60 100644
--- a/Build/source/texk/psutils/psutils-1.23/pstops.c
+++ b/Build/source/texk/psutils/psutils-1.23/pstops.c
@@ -34,7 +34,7 @@ static PageSpec *parsespecs(char *str)
head = tail = newspec();
while (*str) {
- if (isdigit(*str)) {
+ if (isdigit((unsigned char)*str)) {
num = parseint(&str);
} else {
switch (*str++) {
diff --git a/Build/source/texk/psutils/psutils-1.23/psutil.c b/Build/source/texk/psutils/psutils-1.23/psutil.c
index 8533bff4906..f129341ed69 100644
--- a/Build/source/texk/psutils/psutils-1.23/psutil.c
+++ b/Build/source/texk/psutils/psutils-1.23/psutil.c
@@ -258,7 +258,7 @@ void seekpage(int p)
if (fgets(buffer, BUFSIZ, infile) != NULL &&
iscomment(buffer, "%%Page:")) {
char *start, *end;
- for (start = buffer+7; isspace(*start); start++);
+ for (start = buffer+7; isspace((unsigned char)*start); start++);
if (*start == '(') {
int paren = 1;
for (end = start+1; paren > 0; end++)
@@ -275,7 +275,7 @@ void seekpage(int p)
break;
}
} else
- for (end = start; !isspace(*end); end++);
+ for (end = start; !isspace((unsigned char)*end); end++);
strncpy(pagelabel, start, end-start);
pagelabel[end-start] = '\0';
pageno = atoi(end);