From 77f3ff527fa2670c567459f843f39ab4ca835a84 Mon Sep 17 00:00:00 2001 From: claudio Date: Thu, 14 Dec 2023 09:46:10 +0000 Subject: [PATCH] Replace another memset() with explicit_bzero() since the goal is the reason why we have explicit_bzero(). OK matthieu@ --- app/xlockmore/xlock/xlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/xlockmore/xlock/xlock.c b/app/xlockmore/xlock/xlock.c index 5d4ebaf6b..2c37af8ea 100644 --- a/app/xlockmore/xlock/xlock.c +++ b/app/xlockmore/xlock/xlock.c @@ -2659,7 +2659,7 @@ getPassword(void) #endif /* clear plaintext password so you can not grunge around /dev/kmem */ - (void) memset((char *) buffer, 0, sizeof (buffer)); + explicit_bzero(buffer, sizeof (buffer)); if (done) { #ifdef USE_SOUND