Localize it

8bit cleanup
This commit is contained in:
Andrey A. Chernov
1996-08-11 17:46:35 +00:00
parent 11282a57ce
commit 726aebe5e0
3 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -475,7 +475,7 @@ lputs(s)
(void)printf("\\\n");
count = 0;
}
if (isascii(*s) && isprint(*s) && *s != '\\') {
if (isprint((unsigned char)*s) && *s != '\\') {
(void)putchar(*s);
count++;
} else {
@@ -552,7 +552,7 @@ regsub(sp, string, src)
while ((c = *src++) != '\0') {
if (c == '&')
no = 0;
else if (c == '\\' && isdigit(*src))
else if (c == '\\' && isdigit((unsigned char)*src))
no = *src++ - '0';
else
no = -1;