p_clear should not be used with sizeof but *countof*
[apps/madmutt.git] / main.c
diff --git a/main.c b/main.c
index 84c320e..4ea396f 100644 (file)
--- a/main.c
+++ b/main.c
@@ -546,8 +546,8 @@ int main (int argc, char **argv)
   SRAND (time (NULL));
   umask (077);
 
-  p_clear(Options, sizeof(Options));
-  p_clear(QuadOptions, sizeof(QuadOptions));
+  p_clear(Options, countof(Options));
+  p_clear(QuadOptions, countof(QuadOptions));
 
 #ifdef USE_NNTP
   while ((i =