summaryrefslogtreecommitdiff
path: root/src/session-child.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/session-child.c')
-rw-r--r--src/session-child.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session-child.c b/src/session-child.c
index eef51e49..112daabe 100644
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -130,7 +130,8 @@ pam_conv_cb (int msg_length, const struct pam_message **msg, struct pam_response
write_string (username);
gboolean auth_complete = FALSE;
write_data (&auth_complete, sizeof (auth_complete));
- write_data (&msg_length, sizeof (msg_length));
+ size_t length = msg_length;
+ write_data (&length, sizeof (length));
for (int i = 0; i < msg_length; i++)
{
const struct pam_message *m = msg[i];