summaryrefslogtreecommitdiffstats
path: root/usr.bin/more/prim.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/more/prim.c')
-rw-r--r--usr.bin/more/prim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/more/prim.c b/usr.bin/more/prim.c
index 99361cc..d5af8f3 100644
--- a/usr.bin/more/prim.c
+++ b/usr.bin/more/prim.c
@@ -611,8 +611,8 @@ search(search_forward, pattern, n, wantmatch)
*/
if (caseless && pattern != NULL)
for (p = pattern; *p; p++)
- if (isupper(*p & 0xff))
- *p = tolower(*p & 0xff);
+ if (isupper(*p))
+ *p = tolower(*p);
#ifdef RECOMP
/*
@@ -764,7 +764,7 @@ search(search_forward, pattern, n, wantmatch)
*/
if (caseless)
for (p = q = line; *p; p++, q++)
- *q = isupper(*p & 0xff) ? tolower(*p & 0xff) : *p;
+ *q = isupper(*p) ? tolower(*p) : *p;
/*
* Remove any backspaces along with the preceeding char.
OpenPOWER on IntegriCloud