p_clear should not be used with sizeof but *countof*
[apps/madmutt.git] / lib-crypt / pgp.c
index 1c9e4bc..038ba81 100644 (file)
@@ -69,7 +69,7 @@ time_t PgpExptime = 0;          /* when does the cached passphrase expire? */
 
 void pgp_void_passphrase (void)
 {
-  p_clear(PgpPass, sizeof(PgpPass));
+  p_clear(PgpPass, countof(PgpPass));
   PgpExptime = 0;
 }