X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=main.c;h=54899d85b667f6c28def0c8dc96e0ccb267487de;hp=34359415cdb15ab0f8fc5da8022061055b2d7c6b;hb=86cf852af75aa1f893b25a5fd615ac1fdb1b6033;hpb=ae0ce4dfcafa0c3820f107c5bfa8bd06e5272b57 diff --git a/main.c b/main.c index 3435941..54899d8 100644 --- a/main.c +++ b/main.c @@ -25,10 +25,13 @@ #include #include "mutt.h" +#include "mx.h" +#include "buffy.h" +#include "sort.h" +#include "mutt_crypt.h" #include "mutt_curses.h" #include "keymap.h" #include "url.h" -#include "mutt_crypt.h" #include "mutt_idna.h" #include "xterm.h" @@ -632,7 +635,7 @@ int main (int argc, char **argv) break; case 'f': - strfcpy (folder, optarg, sizeof (folder)); + m_strcpy(folder, sizeof(folder), optarg); explicit_folder = 1; break; @@ -817,7 +820,7 @@ int main (int argc, char **argv) char fpath[_POSIX_PATH_MAX]; char msg[STRING]; - strfcpy (fpath, Maildir, sizeof (fpath)); + m_strcpy(fpath, sizeof(fpath), Maildir); mutt_expand_path (fpath, sizeof (fpath)); #ifdef USE_IMAP /* we're not connected yet - skip mail folder creation */ @@ -886,7 +889,7 @@ int main (int argc, char **argv) else { char path[_POSIX_PATH_MAX]; - strfcpy (path, infile, sizeof (path)); + m_strcpy(path, sizeof(path), infile); mutt_expand_path (path, sizeof (path)); if ((fin = fopen (path, "r")) == NULL) { if (!option (OPTNOCURSES)) @@ -993,7 +996,7 @@ int main (int argc, char **argv) } if (!folder[0]) - strfcpy (folder, NONULL (Spoolfile), sizeof (folder)); + m_strcpy(folder, sizeof(folder), NONULL(Spoolfile)); #ifdef USE_NNTP if (option (OPTNEWS)) {