summaryrefslogtreecommitdiff
path: root/mh/repl.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2010-10-10 22:17:08 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2010-10-12 00:22:49 +0300
commitd3759d840f37fa6a56fcbe57b7bce8883f210593 (patch)
tree60de6cf3034a2a2b225ea507061128ecfb30b308 /mh/repl.c
parente3ef44efce74604bf62cb630f172226afa91b76c (diff)
downloadmailutils-d3759d840f37fa6a56fcbe57b7bce8883f210593.tar.gz
mailutils-d3759d840f37fa6a56fcbe57b7bce8883f210593.tar.bz2
Use mu_make_file_name where necessary.
* comsat/action.c (run_user_action): Use mu_make_file_name. * imap4d/lsub.c (imap4d_lsub): Likewise. * imap4d/subscribe.c (imap4d_subscribe): Likewise. * imap4d/unsubscribe.c (imap4d_unsubscribe): Likewise. * libmailutils/base/filename.c (mu_get_full_path): Likewise. * libmailutils/base/tempfile.c (mu_tempfile): Likewise. * libmailutils/base/url.c (_url_path_default): Likewise. * libmu_auth/virtual.c (getpwnam_virtual) (mu_auth_virt_domain_by_name): Likewise. * libmu_sieve/extensions/vacation.c (check_db): Likewise. * libmu_sieve/sieve.l (_try_include): Likewise. * maidag/forward.c (maidag_forward): Likewise. * mh/mh.h (mh_safe_make_file_name): New proto. * mh/mh_init.c (mh_audit_open,mh_get_dir) (mh_expand_name,mh_real_install): Use mh_safe_make_file_name. (mh_safe_make_file_name): New function. * mh/folder.c (read_seq_file, _scan): Use mh_safe_make_file_name. * mh/mh_global.c (mh_read_profile, _mh_init_global_sequences): Likewise. * mh/install-mh.c (main): Likewise. * mh/mhn.c (normalize_path, store_handler, main): Likewise. * mh/repl.c (make_draft): Likewise. * mh/rmf.c (rmf): Likewise. * mh/sortm.c (swap_message): Likewise. * mimeview/mimetypes.l (mimetypes_open): Likewise. * lib/mailcap.c: Add error checking.
Diffstat (limited to 'mh/repl.c')
-rw-r--r--mh/repl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mh/repl.c b/mh/repl.c
index 5bfccbacd..920c4d6df 100644
--- a/mh/repl.c
+++ b/mh/repl.c
@@ -372,8 +372,8 @@ make_draft (mu_mailbox_t mbox, int disp, struct mh_whatnow_env *wh)
mu_mailbox_get_url (mbox, &url);
mh_message_number (msg, &num);
- asprintf (&msgname, "%s/%s",
- mu_url_to_string (url), mu_umaxtostr (0, num));
+ msgname = mh_safe_make_file_name (mu_url_to_string (url),
+ mu_umaxtostr (0, num));
p = strchr (msgname, ':');
if (!p)
wh->msg = msgname;

Return to:

Send suggestions and report system problems to the System administrator.