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