use safer p_clear when possible.
[apps/madmutt.git] / query.c
diff --git a/query.c b/query.c
index 1f164da..1e1937d 100644 (file)
--- a/query.c
+++ b/query.c
@@ -432,7 +432,7 @@ static void query_menu (char *buf, size_t buflen, QUERY * results, int retbuf)
       int tagged = 0;
       size_t curpos = 0;
 
-      memset (buf, 0, buflen);
+      p_clear(buf, buflen);
 
       /* check for tagged entries */
       for (i = 0; i < menu->max; i++) {