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
|
// get a display
|
||||||
char vt[5];
|
char vt[6];
|
||||||
snprintf(vt, 5, "vt%d", config.tty);
|
snprintf(vt, 6, "vt%d", config.tty);
|
||||||
|
|
||||||
// set env (this clears the environment)
|
// set env (this clears the environment)
|
||||||
env_init(pwd);
|
env_init(pwd);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue