projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplify mutt_parse_date
[apps/madmutt.git]
/
lib-mime
/
rfc2231.c
diff --git
a/lib-mime/rfc2231.c
b/lib-mime/rfc2231.c
index
865877d
..
ff6a02c
100644
(file)
--- a/
lib-mime/rfc2231.c
+++ b/
lib-mime/rfc2231.c
@@
-141,7
+141,7
@@
static void purge_empty_parameters(PARAMETER **headp)
if (!p->attribute || !p->value) {
*headp = p->next;
p->next = NULL;
if (!p->attribute || !p->value) {
*headp = p->next;
p->next = NULL;
-
mutt_free_parameter
(&p);
+
parameter_delete
(&p);
} else {
headp = &(*headp)->next;
}
} else {
headp = &(*headp)->next;
}
@@
-193,7
+193,7
@@
rfc2231_join_continuations(PARAMETER **head, rfc2231_param *par)
if (value) {
if (encoded)
mutt_convert_string (&value, charset, Charset, M_ICONV_HOOK_FROM);
if (value) {
if (encoded)
mutt_convert_string (&value, charset, Charset, M_ICONV_HOOK_FROM);
- *head =
mutt_new_parameter
();
+ *head =
parameter_new
();
(*head)->attribute = m_strdup(attribute);
(*head)->value = value;
head = &(*head)->next;
(*head)->attribute = m_strdup(attribute);
(*head)->value = value;
head = &(*head)->next;
@@
-220,9
+220,7
@@
void rfc2231_decode_parameters (PARAMETER ** headp)
int encoded;
int idx;
int encoded;
int idx;
- short dirty = 0; /* set to 1 when we may have created
- * empty parameters.
- */
+ short dirty = 0; /* 1 when we may have created empty parameters. */
if (!headp)
return;
if (!headp)
return;
@@
-306,7
+304,7
@@
int rfc2231_encode_string(char **s)
char *charset = NULL;
char *e, *p, *t, *d = NULL;
int escapes = 0;
char *charset = NULL;
char *e, *p, *t, *d = NULL;
int escapes = 0;
- size_t dlen = 0;
+ s
s
ize_t dlen = 0;
/*
* A shortcut to detect pure 7bit data.
/*
* A shortcut to detect pure 7bit data.