]> diplodocus.org Git - nmh/blobdiff - uip/aliasbr.c
h/mhparse.h: Move mhfree.c's free_content prototype to new header.
[nmh] / uip / aliasbr.c
index 0c1c6ba87708fd65b51c432c9449a241c48ee094..ab2130efc18f470fda4f5f9f3cc196f531fb7669 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * aliasbr.c -- new aliasing mechanism
+/* aliasbr.c -- new aliasing mechanism
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -165,7 +163,7 @@ aleq (char *string, char *aliasent)
     while ((c = *string++)) {
        if (*aliasent == '*')
            return 1;
     while ((c = *string++)) {
        if (*aliasent == '*')
            return 1;
-        if ((c | 040) != (*aliasent | 040))
+        if (tolower((unsigned char)c) != tolower((unsigned char)*aliasent))
             return 0;
         aliasent++;
     }
             return 0;
         aliasent++;
     }