Merge pull request #36 from atsampson/master
Add missing size args to snprintf calls.
This commit is contained in:
commit
dc5b2a2ec0
4
src/su.c
4
src/su.c
@ -373,8 +373,8 @@ static void prepare_pam_close_session (void)
|
|||||||
stderr);
|
stderr);
|
||||||
(void) kill (-pid_child, caught);
|
(void) kill (-pid_child, caught);
|
||||||
|
|
||||||
snprintf (kill_msg, 256, _(" ...killed.\n"));
|
snprintf (kill_msg, sizeof kill_msg, _(" ...killed.\n"));
|
||||||
snprintf (wait_msg, 256, _(" ...waiting for child to terminate.\n"));
|
snprintf (wait_msg, sizeof wait_msg, _(" ...waiting for child to terminate.\n"));
|
||||||
|
|
||||||
(void) signal (SIGALRM, kill_child);
|
(void) signal (SIGALRM, kill_child);
|
||||||
(void) alarm (2);
|
(void) alarm (2);
|
||||||
|
Loading…
Reference in New Issue
Block a user