From 856e1fc1ad22a24bd71c706bc06ba868e044ddc8 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 16 Jul 2006 01:47:40 +0000 Subject: Attempt to clean up newproc somewhat. Also remove all calls to memcpy in favor of memmove, which has defined semantics when the ranges overlap. The fact that memcpy was working in console.c to scroll the screen is not guaranteed by all implementations. --- console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console.c') diff --git a/console.c b/console.c index 86c080e..5dad05a 100644 --- a/console.c +++ b/console.c @@ -58,7 +58,7 @@ real_cons_putc(int c) if((ind / 80) >= 24){ // scroll up - memcpy(crt, crt + 80, sizeof(crt[0]) * (23 * 80)); + memmove(crt, crt + 80, sizeof(crt[0]) * (23 * 80)); ind -= 80; memset(crt + ind, 0, sizeof(crt[0]) * ((24 * 80) - ind)); } -- cgit v1.2.3