From: Joshua Wise Date: Sun, 7 Dec 2008 11:17:26 +0000 (-0500) Subject: Fix modulo issues in vga-overlay X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/4a7183911c58bc79653e663bc3711d48b5027655 Fix modulo issues in vga-overlay --- 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)); } -