merge all nntp code in nntp.c and move it toplevel
[apps/madmutt.git] / lib-ui / complete.c
index 97f5b2d..a06593b 100644 (file)
@@ -14,7 +14,7 @@
 #include "curses.h"
 #include <imap/imap.h>
 #ifdef USE_NNTP
-#include <nntp/nntp.h>
+#include "nntp.h"
 #endif
 
 /* given a partial pathname, this routine fills in as much of the rest of the
@@ -78,7 +78,7 @@ int mutt_complete (char *s, ssize_t slen)
       }
     }
 
-    strcpy (s, filepart);
+    m_strcpy(s, slen, filepart);
 
     return (init ? 0 : -1);
   }