From 279b59af85dbed922c2d41ca1262c6358866fe46 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Wed, 17 Jan 2024 19:32:02 -0800 Subject: [PATCH] fix: alloc largest size needed for display buffer Signed-off-by: Kevin Morris --- src/login.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/login.c b/src/login.c index ece1ee6..ffa312d 100644 --- a/src/login.c +++ b/src/login.c @@ -615,8 +615,8 @@ void auth( } // get a display - char vt[5]; - snprintf(vt, 5, "vt%d", config.tty); + char vt[6]; + snprintf(vt, 6, "vt%d", config.tty); // set env (this clears the environment) env_init(pwd);