char tmp[_POSIX_PATH_MAX];
mutt_mktemp (tmp);
- if ((msg->fp = safe_fopen (tmp, "w")) == NULL)
+ if ((msg->fp = safe_fopen (tmp, "w")) == NULL) {
+ mutt_perror (tmp);
return (-1);
- msg->path = safe_strdup (tmp);
+ }
+ msg->path = str_dup (tmp);
return 0;
}
}
mx_t* imap_reg_mx (void) {
- mx_t* fmt = safe_calloc (1, sizeof (mx_t));
+ mx_t* fmt = mem_calloc (1, sizeof (mx_t));
/* make up mx_t record... */
fmt->type = M_IMAP;