move buffer.[hc] into lib-lib/
[apps/madmutt.git] / buffy.c
diff --git a/buffy.c b/buffy.c
index 09b281a..99a746d 100644 (file)
--- a/buffy.c
+++ b/buffy.c
 #endif
 
 #include <lib-lib/mem.h>
+#include <lib-lib/buffer.h>
 #include <lib-lib/macros.h>
 
 #include "mutt.h"
 #include "buffy.h"
-#include "buffer.h"
 #include "mx.h"
 #include "mh.h"
 #include "sidebar.h"
@@ -60,7 +60,7 @@ static int fseeko_last_message (FILE * f)
   int bytes_read;
   int i;                        /* Index into `buffer' for scanning.  */
 
-  memset (buffer, 0, sizeof (buffer));
+  p_clear(buffer, 1);
   fseeko (f, 0, SEEK_END);
   pos = ftello (f);