mirror of https://github.com/fairyglade/ly.git
fix: alloc largest size needed for tty_id buffer
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
279b59af85
commit
7571f1ae80
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue