use safer p_clear when possible.
[apps/madmutt.git] / pgpmicalg.c
index 0a45cc6..1b6ecc9 100644 (file)
@@ -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;
   }