i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 2cadf22c67beedcc52b70c76518c91467581ffb8
parent 603c90e9859f30671841bbc305e53fbb7bf7fee8
Author: Michael Stapelberg <michael@stapelberg.de>
Date:   Mon, 15 Oct 2012 22:39:49 +0200

s/pam_message/pam_response/ (Thanks Tucos)

The previous code didn’t cause any issues since both types (currently!)
have the same size.

Diffstat:
Mi3lock.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/i3lock.c b/i3lock.c
@@ -439,7 +439,7 @@ static int conv_callback(int num_msg, const struct pam_message **msg,
         return 1;
 
     /* PAM expects an array of responses, one for each message */
-    if ((*resp = calloc(num_msg, sizeof(struct pam_message))) == NULL) {
+    if ((*resp = calloc(num_msg, sizeof(struct pam_response))) == NULL) {
         perror("calloc");
         return 1;
     }