fix: alloc largest size needed for tty_id buffer

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

View File

@ -501,8 +501,8 @@ void auth(
{
int ok;
char tty_id [3];
snprintf(tty_id, 3, "%d", config.tty);
char tty_id [4];
snprintf(tty_id, 4, "%d", config.tty);
// Add XDG environment variables
env_xdg_session(desktop->display_server[desktop->cur]);