i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 83c27890e4bef6840eaa70e529fe9ce8d2fb1827
parent 815158e8c17b7aafab6ab3eac5ea2e30d664e15b
Author: Raymond Li <hi@raymond.li>
Date:   Sat, 18 Jul 2020 22:08:12 -0400

Fix wrong spot

Diffstat:
Mi3lock.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/i3lock.c b/i3lock.c
@@ -28,7 +28,7 @@
 #include <err.h>
 #include <errno.h>
 #include <assert.h>
-#ifdef HAVE_EXPLICIT_BZERO
+#ifdef __OpenBSD__
 #include <bsd_auth.h>
 #else
 #include <security/pam_appl.h>
@@ -404,7 +404,7 @@ static bool load_compose_table(const char *locale) {
  *
  */
 static void clear_password_memory(void) {
-#ifdef __OpenBSD__
+#ifdef HAVE_EXPLICIT_BZERO
     /* Use explicit_bzero(3) which was explicitly designed not to be
      * optimized out by the compiler. */
     explicit_bzero(password, strlen(password));