X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcomplete.c;h=a06593bce4fe70c7b2278d15d114a18166aebdc2;hp=06e70c345fffa4d57af8663c1b64bc6ba287bc9c;hb=546a6855b7d44c415cb397e3a62f6a854132a0dd;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/lib-ui/complete.c b/lib-ui/complete.c index 06e70c3..a06593b 100644 --- a/lib-ui/complete.c +++ b/lib-ui/complete.c @@ -7,23 +7,14 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include -#include - #include +#include #include "mutt.h" -#include "mx.h" +#include "curses.h" #include #ifdef USE_NNTP -#include +#include "nntp.h" #endif /* given a partial pathname, this routine fills in as much of the rest of the @@ -87,7 +78,7 @@ int mutt_complete (char *s, ssize_t slen) } } - strcpy (s, filepart); + m_strcpy(s, slen, filepart); return (init ? 0 : -1); }