aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/memcasecmp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/memcasecmp.c b/lib/memcasecmp.c
index 2a255f19d..a2e42e8ec 100644
--- a/lib/memcasecmp.c
+++ b/lib/memcasecmp.c
@@ -39,7 +39,9 @@
#include "memcasecmp.h"
-/* Like memcmp, but ignore differences in case. */
+/* Like memcmp, but ignore differences in case.
+ Convert to upper case (not lower) before comparing so that
+ join -i works with sort -f. */
int
memcasecmp (vs1, vs2, n)