summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Cambus <fcambus@cvs.openbsd.org>2017-06-17 19:27:55 +0000
committerFrederic Cambus <fcambus@cvs.openbsd.org>2017-06-17 19:27:55 +0000
commit0469fbcbad16a0c59f444bdb55048b8e79917b72 (patch)
tree20ce9852ebec456044bafaade2b682f3cb803fc1
parenta4cb654d4d5b68984cf28a40f93702dfa05a37c6 (diff)
Since WSFONT_NAME_SIZE was switched from 16 to 32, account for the
change in wsfontload as well: tweak spacing and printf format string. OK deraadt@, mpi@
-rw-r--r--usr.sbin/wsfontload/wsfontload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/wsfontload/wsfontload.c b/usr.sbin/wsfontload/wsfontload.c
index 8c0b6813b42..ecf37d7a2fc 100644
--- a/usr.sbin/wsfontload/wsfontload.c
+++ b/usr.sbin/wsfontload/wsfontload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsfontload.c,v 1.17 2017/06/15 11:48:49 fcambus Exp $ */
+/* $OpenBSD: wsfontload.c,v 1.18 2017/06/17 19:27:54 fcambus Exp $ */
/* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/*
@@ -147,7 +147,7 @@ main(int argc, char *argv[])
if (list) {
i = 0;
- p = " # Name Encoding W H";
+ p = " # Name Encoding W H";
do {
f.index = i;
res = ioctl(wsfd, WSDISPLAYIO_LSFONT, &f);
@@ -157,7 +157,7 @@ main(int argc, char *argv[])
puts(p);
p = NULL;
}
- printf("%2d %-16s %8s %2d %2d\n",
+ printf("%2d %-32s %8s %2d %2d\n",
f.index, f.name,
encodings[f.encoding].name,
f.fontwidth, f.fontheight);