aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-29 02:47:24 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-29 02:47:24 +0800
commite085e7e66628414e659d4375414abdf0fd733d20 (patch)
tree28069f9fe606394a247d01aaf21c2adcd5434af5 /camel
parent8fddf45b58451db958f96ec0aea12f8076684da9 (diff)
downloadgsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar.gz
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar.bz2
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar.lz
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar.xz
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.tar.zst
gsoc2013-evolution-e085e7e66628414e659d4375414abdf0fd733d20.zip
Use g_strcasecmp() because some systems don't have strcasecmp(). Also,
2001-05-28 Jeffrey Stedfast <fejj@ximian.com> * camel-mime-utils.c (header_set_param): Use g_strcasecmp() because some systems don't have strcasecmp(). Also, when removing a param, make sure to free the param->name too. svn path=/trunk/; revision=10030
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-utils.c5
-rw-r--r--camel/camel-pgp-mime.c2
3 files changed, 10 insertions, 3 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 767224d0a2..e09c0532e1 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-28 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-mime-utils.c (header_set_param): Use g_strcasecmp()
+ because some systems don't have strcasecmp(). Also, when removing
+ a param, make sure to free the param->name too.
+
2001-05-27 Dan Winship <danw@ximian.com>
* tests/lib/messages.c (test_message_read_file): Fix an fd leak
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index b8ac8aae93..2686b9921b 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1778,13 +1778,14 @@ header_set_param(struct _header_param **l, const char *name, const char *value)
while (p->next) {
pn = p->next;
- if (!strcasecmp(pn->name, name)) {
- g_free(pn->value);
+ if (!g_strcasecmp (pn->name, name)) {
+ g_free (pn->value);
if (value) {
pn->value = g_strdup(value);
return pn;
} else {
p->next = pn->next;
+ g_free (pn->name);
g_free(pn);
return NULL;
}
diff --git a/camel/camel-pgp-mime.c b/camel/camel-pgp-mime.c
index ba91804579..ce8071cbc2 100644
--- a/camel/camel-pgp-mime.c
+++ b/camel/camel-pgp-mime.c
@@ -54,7 +54,7 @@ camel_pgp_mime_is_rfc2015_signed (CamelMimePart *mime_part)
if (!header_content_type_is (type, "multipart", "signed"))
return FALSE;
- /* check that we have a protocol param with the value: "application/pgp-signed" */
+ /* check that we have a protocol param with the value: "application/pgp-signature" */
param = header_content_type_param (type, "protocol");
if (!param || g_strcasecmp (param, "application/pgp-signature"))
return FALSE;