From 3c14ec7a11c5c49099a863e905a7e0728bf7ba9f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 15 Sep 2005 22:30:20 +0000 Subject: [PATCH] Use g_ascii_strcasecmp() instead of strcasecmp(). The strings we are 2005-09-16 Tor Lillqvist * 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 | 6 ++++++ camel/providers/sendmail/camel-sendmail-transport.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/camel/providers/sendmail/ChangeLog b/camel/providers/sendmail/ChangeLog index 70adf8f..ddfd722 100644 --- a/camel/providers/sendmail/ChangeLog +++ b/camel/providers/sendmail/ChangeLog @@ -1,3 +1,9 @@ +2005-09-16 Tor Lillqvist + + * 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 ** See bug #300891 diff --git a/camel/providers/sendmail/camel-sendmail-transport.c b/camel/providers/sendmail/camel-sendmail-transport.c index d0660b2..9bd90e2 100644 --- a/camel/providers/sendmail/camel-sendmail-transport.c +++ b/camel/providers/sendmail/camel-sendmail-transport.c @@ -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; -- 2.7.4