diff options
author | Michal Soltys <soltys@ziu.info> | 2016-07-27 00:57:01 +0200 |
---|---|---|
committer | Michal Soltys <soltys@ziu.info> | 2016-07-27 00:57:01 +0200 |
commit | 9fa71843bbb31c89f81976819eec009335b09f2d (patch) | |
tree | a65b945dae1a02b7f24e70bc4d015f7c0f1de5fa /src/vconsole | |
parent | c2f2c51c53e91232e6f2aa686d734728ad703f9f (diff) |
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.
Diffstat (limited to 'src/vconsole')
-rw-r--r-- | src/vconsole/vconsole-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vconsole/vconsole-setup.c b/src/vconsole/vconsole-setup.c index abf3871fd8..df18c231e0 100644 --- a/src/vconsole/vconsole-setup.c +++ b/src/vconsole/vconsole-setup.c @@ -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 = {}; |