summaryrefslogtreecommitdiffstats
path: root/usr.bin/sed/process.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-08-11 17:46:35 +0000
committerache <ache@FreeBSD.org>1996-08-11 17:46:35 +0000
commit4fbce9eec9b4b88334ffa6fef284a790009a3988 (patch)
treeac9ecdf1b0f419cdb30a88e73864fb571ab9a428 /usr.bin/sed/process.c
parent90489078d43eed0c1919d3bc06df618de9c65b52 (diff)
downloadFreeBSD-src-4fbce9eec9b4b88334ffa6fef284a790009a3988.zip
FreeBSD-src-4fbce9eec9b4b88334ffa6fef284a790009a3988.tar.gz
Localize it
8bit cleanup
Diffstat (limited to 'usr.bin/sed/process.c')
-rw-r--r--usr.bin/sed/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sed/process.c b/usr.bin/sed/process.c
index c435e1e..3b0828c 100644
--- a/usr.bin/sed/process.c
+++ b/usr.bin/sed/process.c
@@ -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;
OpenPOWER on IntegriCloud