Use g_ascii_strcasecmp() instead of strcasecmp(). The strings we are
authorTor Lillqvist <tml@novell.com>
Thu, 15 Sep 2005 22:30:20 +0000 (22:30 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 15 Sep 2005 22:30:20 +0000 (22:30 +0000)
2005-09-16  Tor Lillqvist  <tml@novell.com>

* camel-sendmail-transport.c: Use g_ascii_strcasecmp() instead of
strcasecmp(). The strings we are comparing are just ASCII anyway,
so spell it out that we really do need ASCII casefolding only.

camel/providers/sendmail/ChangeLog
camel/providers/sendmail/camel-sendmail-transport.c

index 70adf8f..ddfd722 100644 (file)
@@ -1,3 +1,9 @@
+2005-09-16  Tor Lillqvist  <tml@novell.com>
+
+       * camel-sendmail-transport.c: Use g_ascii_strcasecmp() instead of
+       strcasecmp(). The strings we are comparing are just ASCII anyway,
+       so spell it out that we really do need ASCII casefolding only.
+
 2005-04-17  Changwoo Ryu  <cwryu@debian.org>
 
        ** See bug #300891
index d0660b2..9bd90e2 100644 (file)
@@ -128,7 +128,7 @@ sendmail_send_to (CamelTransport *transport, CamelMimeMessage *message,
        header = (struct _camel_header_raw *) &CAMEL_MIME_PART (message)->headers;
        n = header->next;
        while (n != NULL) {
-               if (!strcasecmp (n->name, "Bcc")) {
+               if (!g_ascii_strcasecmp (n->name, "Bcc")) {
                        header->next = n->next;
                        tail->next = n;
                        n->next = NULL;