(mail_copy0): Use mail_expand_name().
Showing
1 changed file
with
5 additions
and
2 deletions
... | @@ -41,10 +41,13 @@ mail_copy0 (int argc, char **argv, int mark) | ... | @@ -41,10 +41,13 @@ mail_copy0 (int argc, char **argv, int mark) |
41 | if (isupper (argv[0][0])) | 41 | if (isupper (argv[0][0])) |
42 | sender = 1; | 42 | sender = 1; |
43 | else if (argc >= 2) | 43 | else if (argc >= 2) |
44 | filename = strdup(argv[--argc]); | 44 | filename = mail_expand_name (argv[--argc]); |
45 | else | 45 | else |
46 | filename = strdup("mbox"); | 46 | filename = strdup ("mbox"); |
47 | 47 | ||
48 | if (!filename) | ||
49 | return 1; | ||
50 | |||
48 | if (msgset_parse (argc, argv, &msglist)) | 51 | if (msgset_parse (argc, argv, &msglist)) |
49 | { | 52 | { |
50 | if (filename) | 53 | if (filename) | ... | ... |
-
Please register or sign in to post a comment