summaryrefslogtreecommitdiffstats
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/strings.c b/strings.c
index eb6a8917..55cfe46b 100644
--- a/strings.c
+++ b/strings.c
@@ -62,16 +62,16 @@ mdoc_isescape(const char *p)
case ('e'):
return(2);
case ('*'):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
switch (*p) {
case ('('):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
return(4);
case ('['):
for (c = 3, p++; *p && ']' != *p; p++, c++)
- if ( ! isgraph((int)*p))
+ if ( ! isgraph((u_char)*p))
break;
return(*p == ']' ? c : 0);
default:
@@ -79,9 +79,9 @@ mdoc_isescape(const char *p)
}
return(3);
case ('('):
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
- if (0 == *++p || ! isgraph((int)*p))
+ if (0 == *++p || ! isgraph((u_char)*p))
return(0);
return(4);
case ('['):
@@ -91,7 +91,7 @@ mdoc_isescape(const char *p)
}
for (c = 3, p++; *p && ']' != *p; p++, c++)
- if ( ! isgraph((int)*p))
+ if ( ! isgraph((u_char)*p))
break;
return(*p == ']' ? c : 0);