p_clear should not be used with sizeof but *countof*
[apps/madmutt.git] / rfc3676.c
index de9e0b6..f1cd2e3 100644 (file)
--- a/rfc3676.c
+++ b/rfc3676.c
@@ -26,8 +26,9 @@
 #include <lib-lib/macros.h>
 #include <lib-lib/file.h>
 
+#include <lib-ui/curses.h>
+
 #include "mutt.h"
-#include "mutt_curses.h"
 #include "handler.h"
 #include "state.h"
 #include "lib.h"
@@ -272,5 +273,5 @@ void rfc3676_space_stuff (HEADER* hdr) {
   fclose (out);
   mutt_set_mtime (hdr->content->filename, tmpfile);
   unlink (hdr->content->filename);
-  str_replace (&hdr->content->filename, tmpfile);
+  m_strreplace(&hdr->content->filename, tmpfile);
 }