diff options
author | Tor Lillqvist <tml@novell.com> | 2005-09-28 18:34:18 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 2005-09-28 18:34:18 +0800 |
commit | c8bc7fc32c0cec40ca5f547e5b01d02985f37510 (patch) | |
tree | 6aa76a0a4e620426a81b11ab6be17d2bf2e3eaaf /mail/em-composer-utils.c | |
parent | 14d14477fd707760452a90a3d076ce9b2c1fa9a4 (diff) | |
download | gsoc2013-evolution-c8bc7fc32c0cec40ca5f547e5b01d02985f37510.tar.gz gsoc2013-evolution-c8bc7fc32c0cec40ca5f547e5b01d02985f37510.tar.zst gsoc2013-evolution-c8bc7fc32c0cec40ca5f547e5b01d02985f37510.zip |
em-composer-utils.c (reply_get_composer, get_reply_list,
2005-09-28 Tor Lillqvist <tml@novell.com>
* em-composer-utils.c (reply_get_composer, get_reply_list,
post_reply_to_message)
* em-folder-view.c (emfv_format_link_clicked): Use
g_ascii_strncasecmp() instead of strncasecmp(). We are comparing
to literal ASCII strings, so just casefolding ASCII is
enough. Also better for portability.
svn path=/trunk/; revision=30397
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | mail/em-composer-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 452cad9bca..90bb3f155c 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -1368,7 +1368,7 @@ reply_get_composer (CamelMimeMessage *message, EAccount *account, /* Set the subject of the new message. */ if ((subject = (char *) camel_mime_message_get_subject (message))) { - if (strncasecmp (subject, "Re: ", 4) != 0) + if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0) subject = g_strdup_printf ("Re: %s", subject); else subject = g_strdup (subject); @@ -1522,7 +1522,7 @@ get_reply_list (CamelMimeMessage *message, CamelInternetAddress *to) header++; /* check for NO */ - if (!strncasecmp (header, "NO", 2)) + if (!g_ascii_strncasecmp (header, "NO", 2)) return FALSE; /* Search for the first mailto angle-bracket enclosed URL. @@ -1998,7 +1998,7 @@ post_reply_to_message (CamelFolder *folder, const char *uid, CamelMimeMessage *m /* Set the subject of the new message. */ if ((subject = (char *) camel_mime_message_get_subject (message))) { - if (strncasecmp (subject, "Re: ", 4) != 0) + if (g_ascii_strncasecmp (subject, "Re: ", 4) != 0) subject = g_strdup_printf ("Re: %s", subject); else subject = g_strdup (subject); |