From 4a7183911c58bc79653e663bc3711d48b5027655 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sun, 7 Dec 2008 06:17:26 -0500 Subject: [PATCH 1/1] Fix modulo issues in vga-overlay --- aseg-paging/vga-overlay.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aseg-paging/vga-overlay.c b/aseg-paging/vga-overlay.c index e6e223c..f7d7bf4 100644 --- a/aseg-paging/vga-overlay.c +++ b/aseg-paging/vga-overlay.c @@ -74,7 +74,7 @@ void outlog() int y; for (y = -LOG_ONSCREEN; y < 0; y++) - strblit(logents[(y + prodptr) % LOGLEN], y + LOG_ONSCREEN, 40, 1); + strblit(logents[(y + prodptr + LOGLEN) % LOGLEN], y + LOG_ONSCREEN, 40, 1); } void dolog(const char *s) @@ -112,4 +112,3 @@ void (*outputf)(const char *s, ...) = dologf; void dump_log (char * target) { memcpy(target, logents, sizeof(logents)); } - -- 2.43.0