projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use good m_ functions, because it smell like a flower, version 2.
[apps/madmutt.git]
/
send.c
diff --git
a/send.c
b/send.c
index
6bd7885
..
1773589
100644
(file)
--- a/
send.c
+++ b/
send.c
@@
-603,7
+603,7
@@
void mutt_make_misc_reply_headers (ENVELOPE * env,
if (curenv->real_subj) {
p_delete(&env->subject);
env->subject = p_new(char, m_strlen(curenv->real_subj) + 5);
if (curenv->real_subj) {
p_delete(&env->subject);
env->subject = p_new(char, m_strlen(curenv->real_subj) + 5);
- sprintf (env->subject, "Re: %s", curenv->real_subj);
/* __SPRINTF_CHECKED__ */
+ sprintf (env->subject, "Re: %s", curenv->real_subj);
}
else if (!env->subject)
env->subject = m_strdup("Re: your mail");
}
else if (!env->subject)
env->subject = m_strdup("Re: your mail");
@@
-952,7
+952,7
@@
address_t *mutt_default_from (void)
else if (option (OPTUSEDOMAIN)) {
adr = address_new ();
adr->mailbox = p_new(char, m_strlen(Username) + m_strlen(fqdn) + 2);
else if (option (OPTUSEDOMAIN)) {
adr = address_new ();
adr->mailbox = p_new(char, m_strlen(Username) + m_strlen(fqdn) + 2);
- sprintf (adr->mailbox, "%s@%s", NONULL (Username), NONULL (fqdn));
/* __SPRINTF_CHECKED__ */
+ sprintf (adr->mailbox, "%s@%s", NONULL (Username), NONULL (fqdn));
}
else {
adr = address_new ();
}
else {
adr = address_new ();
@@
-1043,7
+1043,7
@@
int mutt_resend_message (FILE * fp, CONTEXT * ctx, HEADER * cur)
{
HEADER *msg = header_new();
{
HEADER *msg = header_new();
- if (mutt_prepare_template (fp, ctx, msg, cur,
1
) < 0)
+ if (mutt_prepare_template (fp, ctx, msg, cur,
option(OPTWEED)
) < 0)
return -1;
return ci_send_message (SENDRESEND, msg, NULL, ctx, cur);
return -1;
return ci_send_message (SENDRESEND, msg, NULL, ctx, cur);