mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 14:02:52 +07:00
initctl: buffer overflow in runlevel string formatting
Fix #437 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+1
-1
@@ -767,7 +767,7 @@ static int plugins_list(char *arg)
|
||||
*/
|
||||
char *runlevel_string(int currlevel, int levels)
|
||||
{
|
||||
static char lvl[21];
|
||||
static char lvl[32];
|
||||
int i = INIT_LEVEL;
|
||||
int pos = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user