From: Serge Hallyn Date: Mon, 19 Sep 2016 02:31:18 +0000 (-0500) Subject: su.c: fix missing length argument to snprintf X-Git-Tag: 4.4~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67d2bb6e0a5ac124ce1f026dd5723217b1493194;p=shadow su.c: fix missing length argument to snprintf --- diff --git a/src/su.c b/src/su.c index 0c50a945..93ffd2fb 100644 --- a/src/su.c +++ b/src/su.c @@ -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);