p_clear should not be used with sizeof but *countof*
[apps/madmutt.git] / lib-crypt / smime.c
index d520287..fe6b6cf 100644 (file)
@@ -102,7 +102,7 @@ static char SmimeIntermediateToUse[_POSIX_PATH_MAX];
 
 void smime_void_passphrase (void)
 {
-  p_clear(SmimePass, sizeof(SmimePass));
+  p_clear(SmimePass, countof(SmimePass));
   SmimeExptime = 0;
 }