summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
diff options
context:
space:
mode:
authorJoshua Stein <jcs@cvs.openbsd.org>2016-09-14 03:25:52 +0000
committerJoshua Stein <jcs@cvs.openbsd.org>2016-09-14 03:25:52 +0000
commitef3c055cec6e4c76905703d44fde452d0fabe5e6 (patch)
tree935f31149d3beb89bee69386a2bd416cbea29726 /sys/dev/wscons
parentfc488931ff9d9ffe835c9fbea0054830855ab86a (diff)
limit the number of fonts that can be loaded
ok millert mlarkin deraadt
Diffstat (limited to 'sys/dev/wscons')
-rw-r--r--sys/dev/wscons/wsconsio.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsconsio.h b/sys/dev/wscons/wsconsio.h
index 32d2eef6962..5eb555f238b 100644
--- a/sys/dev/wscons/wsconsio.h
+++ b/sys/dev/wscons/wsconsio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsio.h,v 1.74 2016/03/30 23:34:12 bru Exp $ */
+/* $OpenBSD: wsconsio.h,v 1.75 2016/09/14 03:25:51 jcs Exp $ */
/* $NetBSD: wsconsio.h,v 1.74 2005/04/28 07:15:44 martin Exp $ */
/*
@@ -418,6 +418,7 @@ struct wsdisplay_cursor {
struct wsdisplay_font {
char name[WSFONT_NAME_SIZE];
int index;
+#define WSDISPLAY_MAXFONTCOUNT 8
int firstchar, numchars;
int encoding;
#define WSDISPLAY_FONTENC_ISO 0