fix: alloc largest size needed for display buffer

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2024-01-17 19:32:02 -08:00
parent 4ee2b3ecc7
commit 279b59af85
No known key found for this signature in database
GPG Key ID: F7E46DED420788F3
1 changed files with 2 additions and 2 deletions

View File

@ -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);