summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2016-07-27 00:57:01 +0200
committerMichal Soltys <soltys@ziu.info>2016-07-27 00:57:01 +0200
commit9fa71843bbb31c89f81976819eec009335b09f2d (patch)
treea65b945dae1a02b7f24e70bc4d015f7c0f1de5fa /src
parentc2f2c51c53e91232e6f2aa686d734728ad703f9f (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')
-rw-r--r--src/vconsole/vconsole-setup.c2
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 = {};