]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vconsole: copy font to 63 consoles instead of 15
authorMichal Soltys <soltys@ziu.info>
Tue, 26 Jul 2016 22:57:01 +0000 (00:57 +0200)
committerMichal Soltys <soltys@ziu.info>
Tue, 26 Jul 2016 22:57:01 +0000 (00:57 +0200)
We copy only to allocated consoles, so the cost of looping over
all possible ones is minuscule.

src/vconsole/vconsole-setup.c

index abf3871fd8e24b8ac65a9f42479ac7022f3264a5..df18c231e04a921dd5e04c3b91de8bfeb2f2600d 100644 (file)
@@ -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 = {};