projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
recvattach.c
diff --git
a/recvattach.c
b/recvattach.c
index
b9237f8
..
265a18c
100644
(file)
--- a/
recvattach.c
+++ b/
recvattach.c
@@
-56,7
+56,7
@@
static struct mapping_t AttachHelp[] = {
int mutt_extract_path (char *filename, char *path)
{
int mutt_extract_path (char *filename, char *path)
{
- char *tmp =
safe
_malloc (sizeof (char) * _POSIX_PATH_MAX);
+ char *tmp =
mem
_malloc (sizeof (char) * _POSIX_PATH_MAX);
char *help_ptr;
help_ptr = tmp;
char *help_ptr;
help_ptr = tmp;
@@
-70,7
+70,7
@@
int mutt_extract_path (char *filename, char *path)
}
*help_ptr++ = *filename++;
}
}
*help_ptr++ = *filename++;
}
-
FREE
(&tmp);
+
mem_free
(&tmp);
return 0;
}
return 0;
}
@@
-95,11
+95,11
@@
void mutt_update_tree (ATTACHPTR ** idx, short idxlen)
}
if (idx[x]->tree) {
}
if (idx[x]->tree) {
- if (
mutt_str
cmp (idx[x]->tree, buf) != 0)
+ if (
str_
cmp (idx[x]->tree, buf) != 0)
str_replace (&idx[x]->tree, buf);
}
else
str_replace (&idx[x]->tree, buf);
}
else
- idx[x]->tree = s
afe_str
dup (buf);
+ idx[x]->tree = s
tr_
dup (buf);
if (2 * (idx[x]->level + 2) < sizeof (buf) && idx[x]->level) {
s = buf + 2 * (idx[x]->level - 1);
if (2 * (idx[x]->level + 2) < sizeof (buf) && idx[x]->level) {
s = buf + 2 * (idx[x]->level - 1);
@@
-120,7
+120,7
@@
ATTACHPTR **mutt_gen_attach_list (BODY * m,
for (; m; m = m->next) {
if (*idxlen == *idxmax) {
for (; m; m = m->next) {
if (*idxlen == *idxmax) {
-
safe
_realloc (&idx, sizeof (ATTACHPTR *) * ((*idxmax) += 5));
+
mem
_realloc (&idx, sizeof (ATTACHPTR *) * ((*idxmax) += 5));
for (i = *idxlen; i < *idxmax; i++)
idx[i] = NULL;
}
for (i = *idxlen; i < *idxmax; i++)
idx[i] = NULL;
}
@@
-138,7
+138,7
@@
ATTACHPTR **mutt_gen_attach_list (BODY * m,
}
else {
if (!idx[*idxlen])
}
else {
if (!idx[*idxlen])
- idx[*idxlen] = (ATTACHPTR *)
safe
_calloc (1, sizeof (ATTACHPTR));
+ idx[*idxlen] = (ATTACHPTR *)
mem
_calloc (1, sizeof (ATTACHPTR));
new = idx[(*idxlen)++];
new->content = m;
new = idx[(*idxlen)++];
new->content = m;
@@
-527,7
+527,7
@@
void mutt_save_attachment_list (FILE * fp, int tag, BODY * top, HEADER * hdr,
break;
}
break;
}
-
FREE
(&directory);
+
mem_free
(&directory);
if (tag && menu) {
menu->oldcurrent = menu->current;
if (tag && menu) {
menu->oldcurrent = menu->current;
@@
-1175,7
+1175,7
@@
void mutt_view_attachments (HEADER * hdr)
CHECK_ATTACH;
if (!idx[menu->current]->content->hdr->env->followup_to ||
CHECK_ATTACH;
if (!idx[menu->current]->content->hdr->env->followup_to ||
- s
afe_str
casecmp (idx[menu->current]->content->hdr->env->followup_to,
+ s
tr_
casecmp (idx[menu->current]->content->hdr->env->followup_to,
"poster")
|| query_quadoption (OPT_FOLLOWUPTOPOSTER,
_("Reply by mail as poster prefers?")) !=
"poster")
|| query_quadoption (OPT_FOLLOWUPTOPOSTER,
_("Reply by mail as poster prefers?")) !=
@@
-1218,12
+1218,12
@@
void mutt_view_attachments (HEADER * hdr)
hdr->attach_del = 1;
if (idx[idxmax]->content)
idx[idxmax]->content->aptr = NULL;
hdr->attach_del = 1;
if (idx[idxmax]->content)
idx[idxmax]->content->aptr = NULL;
-
FREE
(&idx[idxmax]->tree);
-
FREE
(&idx[idxmax]);
+
mem_free
(&idx[idxmax]->tree);
+
mem_free
(&idx[idxmax]);
}
if (hdr->attach_del)
hdr->changed = 1;
}
if (hdr->attach_del)
hdr->changed = 1;
-
FREE
(&idx);
+
mem_free
(&idx);
idxmax = 0;
if (WithCrypto && need_secured && secured) {
idxmax = 0;
if (WithCrypto && need_secured && secured) {