vconsole: copy font to 63 consoles instead of 15
We copy only to allocated consoles, so the cost of looping over all possible ones is minuscule.
This commit is contained in:
@@ -209,7 +209,7 @@ static void font_copy_to_all_vcs(int fd) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 1; i <= 15; i++) {
|
||||
for (i = 1; i <= 63; i++) {
|
||||
char vcname[strlen("/dev/vcs") + DECIMAL_STR_MAX(int)];
|
||||
_cleanup_close_ int vcfd = -1;
|
||||
struct console_font_op cfo = {};
|
||||
|
||||
Reference in New Issue
Block a user