X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=pgpmicalg.c;h=1b6ecc914702c67fd7aa9ba66f696f4febb4900c;hp=0a45cc6a6bf4e3c430c02afcd88a2f115733f61e;hb=9274cbe8e6410ddb95ddc667faa678a29da85420;hpb=ef7b80006ebb47372d69c64e8b2b2f0764333d55 diff --git a/pgpmicalg.c b/pgpmicalg.c index 0a45cc6..1b6ecc9 100644 --- a/pgpmicalg.c +++ b/pgpmicalg.c @@ -65,7 +65,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; @@ -106,7 +106,7 @@ static void pgp_dearmor (FILE * in, FILE * out) return; } - if ((end = ftello (in) - str_len (line)) < start) { + if ((end = ftello (in) - m_strlen(line)) < start) { debug_print (1, ("end < start???\n")); return; }