From 106e6868db408f47183f1d61c933dd631b73d5b0 Mon Sep 17 00:00:00 2001 From: drochner Date: Mon, 13 Dec 1999 14:04:06 +0000 Subject: [PATCH] fix off-by-one error in font table initialisation (mostly harmless because it is zero initialized in most cases anyway) --- sys/dev/ic/vga.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index b9b00279d811..034c0f6b4f1c 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -1,4 +1,4 @@ -/* $NetBSD: vga.c,v 1.22 1999/12/06 18:54:50 drochner Exp $ */ +/* $NetBSD: vga.c,v 1.23 1999/12/13 14:04:06 drochner Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -507,7 +507,7 @@ vga_init(vc, iot, memt) vc->currenttype = vh->vh_mono ? &vga_stdscreen_mono : &vga_stdscreen; vc->vc_fonts[0] = &vga_builtinfont; - for (i = 1; i < 7; i++) + for (i = 1; i < 8; i++) vc->vc_fonts[i] = 0; vc->currentfontset1 = vc->currentfontset2 = 0;