summaryrefslogtreecommitdiffstats
path: root/usr.bin/comm
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1999-10-24 04:21:42 +0000
committerache <ache@FreeBSD.org>1999-10-24 04:21:42 +0000
commitc870ad362411ad3d1fca6f747f0a1884f6bd2284 (patch)
tree4f36ee79729658eab3a8cea9630f467592ebb451 /usr.bin/comm
parent9fbc2f9470f3420f43c0d1fffd44b82e171dcd8e (diff)
downloadFreeBSD-src-c870ad362411ad3d1fca6f747f0a1884f6bd2284.zip
FreeBSD-src-c870ad362411ad3d1fca6f747f0a1884f6bd2284.tar.gz
toupper->tolower to match what strcasecmp does
Diffstat (limited to 'usr.bin/comm')
-rw-r--r--usr.bin/comm/comm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/comm/comm.c b/usr.bin/comm/comm.c
index 28e6bd7..545ea33 100644
--- a/usr.bin/comm/comm.c
+++ b/usr.bin/comm/comm.c
@@ -71,10 +71,10 @@ int stricoll(char *s1, char *s2)
char *p, line1[MAXLINELEN], line2[MAXLINELEN];
for (p = line1; *s1; s1++)
- *p++ = toupper((unsigned char)*s1);
+ *p++ = tolower((unsigned char)*s1);
*p = '\0';
for (p = line2; *s2; s2++)
- *p++ = toupper((unsigned char)*s2);
+ *p++ = tolower((unsigned char)*s2);
*p = '\0';
return strcoll(s1, s2);
}
OpenPOWER on IntegriCloud