summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-29 21:00:06 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-29 21:00:06 +0000
commitafb9e399b5e2bf147190866db7fe30cbff076226 (patch)
tree097d7f6bb90db560729f0775e5a36dd88a30e8f3 /sys
parentd14344e761075bb2e5430d34928005d08bfd6924 (diff)
Oops, correct logic when requested font index is out of bounds. Thankfully
it's a can't happen situation.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/sti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/sti.c b/sys/dev/ic/sti.c
index aba46b0d775..fe7c82cc4b7 100644
--- a/sys/dev/ic/sti.c
+++ b/sys/dev/ic/sti.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sti.c,v 1.57 2009/01/28 17:37:40 miod Exp $ */
+/* $OpenBSD: sti.c,v 1.58 2009/01/29 21:00:05 miod Exp $ */
/*
* Copyright (c) 2000-2003 Michael Shalayeff
@@ -670,7 +670,7 @@ rescan:
* If our font index was bogus, we did not find the expected font.
* In this case, pick the first one and be done with it.
*/
- if (addr == 0) {
+ if (fp->next == 0) {
fontindex = 0;
goto rescan;
}