su.c: fix missing length argument to snprintf

This commit is contained in:
Serge Hallyn 2016-09-18 21:31:18 -05:00
parent 99b5feadd9
commit 67d2bb6e0a

View File

@ -373,8 +373,8 @@ static void prepare_pam_close_session (void)
stderr);
(void) kill (-pid_child, caught);
snprintf (kill_msg, _(" ...killed.\n"));
snprintf (wait_msg, _(" ...waiting for child to terminate.\n"));
snprintf (kill_msg, 256, _(" ...killed.\n"));
snprintf (wait_msg, 256, _(" ...waiting for child to terminate.\n"));
(void) signal (SIGALRM, kill_child);
(void) alarm (2);