summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2020-07-30 15:08:16 +0300
committerSergey Poznyakoff <gray@gnu.org>2020-07-30 15:08:16 +0300
commit5e98bfdac8061ffef40f35200a4fee5c0331197a (patch)
tree6b9651dab07e58eb637c3d40b0fa88d6bb0095ec /lib
parent376d5eef88acdbad3dcfa7f0bd87d9bd66feda61 (diff)
downloadmailutils-5e98bfdac8061ffef40f35200a4fee5c0331197a.tar.gz
mailutils-5e98bfdac8061ffef40f35200a4fee5c0331197a.tar.bz2
Bugfixes
* libmailutils/base/ctparse.c (content_type_parse): Initialize rc. * decodemail/decodemail.c (message_decode): Use the MU_CONTENT_TYPE_PARAM flag. * lib/mdecode.c: Likewise.
Diffstat (limited to 'lib')
-rw-r--r--lib/mdecode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mdecode.c b/lib/mdecode.c
index 9f0c4a9e5..36aaed2f8 100644
--- a/lib/mdecode.c
+++ b/lib/mdecode.c
@@ -215,10 +215,12 @@ message_body_stream (mu_message_t msg, int unix_header, char const *charset,
return rc;
}
- rc = mu_content_type_parse_ext (buf, NULL, MU_CONTENT_TYPE_RELAXED, &ct);
+ rc = mu_content_type_parse_ext (buf, NULL,
+ MU_CONTENT_TYPE_RELAXED |
+ MU_CONTENT_TYPE_PARAM, &ct);
if (rc)
{
- mu_diag_funcall (MU_DIAG_ERROR, "mu_content_type_parse", buf, rc);
+ mu_diag_funcall (MU_DIAG_ERROR, "mu_content_type_parse_ext", buf, rc);
free (buf);
return rc;
}

Return to:

Send suggestions and report system problems to the System administrator.