fix small bug from julien
[apps/madmutt.git] / pgpmicalg.c
index e63c943..1c322be 100644 (file)
@@ -19,7 +19,6 @@
 #include "handler.h"
 #include "pgp.h"
 #include "pgppacket.h"
-#include "mime.h"
 #include "charset.h"
 
 #include <stdio.h>
@@ -28,6 +27,9 @@
 #include <ctype.h>
 
 #include <lib-lib/file.h>
+
+#include <lib-mime/mime.h>
+
 #include "lib/debug.h"
 
 static struct {
@@ -84,7 +86,7 @@ static void pgp_dearmor (FILE * in, FILE * out)
   /* skip the armor header */
 
   while ((r = fgets (line, sizeof (line), in)) != NULL) {
-    SKIPWS (r);
+    r = vskipspaces(r);
     if (!*r)
       break;
   }