X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgpmicalg.c;h=1c322be064d206c878357b0f49dd69aa23d135c4;hp=b5985b379aa28a3d2a925cc02bc52a9c1938a6b2;hb=93b012884de4ca5e1f2550f767d0b8680b9c0e9f;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/pgpmicalg.c b/pgpmicalg.c index b5985b3..1c322be 100644 --- a/pgpmicalg.c +++ b/pgpmicalg.c @@ -19,7 +19,6 @@ #include "handler.h" #include "pgp.h" #include "pgppacket.h" -#include "mime.h" #include "charset.h" #include @@ -27,6 +26,10 @@ #include #include +#include + +#include + #include "lib/debug.h" static struct { @@ -65,7 +68,7 @@ static void pgp_dearmor (FILE * in, FILE * out) STATE state; - memset (&state, 0, sizeof (STATE)); + p_clear(&state, 1); state.fpin = in; state.fpout = out; @@ -83,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; }