X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=complete.c;h=649fa0a5aea9f1b6ab354d24ffabc7741beb5da2;hp=491d897d05448c495b97221428b5929fee25c897;hb=ae0ce4dfcafa0c3820f107c5bfa8bd06e5272b57;hpb=eed5352e46df93f8921d2e6dfdc95b027bad6e1e diff --git a/complete.c b/complete.c index 491d897..649fa0a 100644 --- a/complete.c +++ b/complete.c @@ -21,6 +21,7 @@ #endif #include +#include #include "lib/debug.h" #include @@ -104,7 +105,7 @@ int mutt_complete (char *s, size_t slen) /* we can use '/' as a delimiter, imap_complete rewrites it */ if (*s == '=' || *s == '+' || *s == '!') { const char *q = NONULL(*s == '!' ? Spoolfile : Maildir); - mutt_concat_path (imap_path, q, s + 1, sizeof (imap_path)); + mutt_concat_path(imap_path, sizeof(imap_path), q, s + 1); } else strfcpy (imap_path, s, sizeof (imap_path)); @@ -124,7 +125,7 @@ int mutt_complete (char *s, size_t slen) char buf[_POSIX_PATH_MAX]; *p++ = 0; - mutt_concat_path (buf, exp_dirpart, s + 1, sizeof (buf)); + mutt_concat_path(buf, sizeof(buf), exp_dirpart, s + 1); strfcpy (exp_dirpart, buf, sizeof (exp_dirpart)); snprintf (buf, sizeof (buf), "%s%s/", dirpart, s + 1); strfcpy (dirpart, buf, sizeof (dirpart));