Module Name:    src
Committed By:   maxv
Date:           Wed Apr  3 19:14:25 UTC 2019

Modified Files:
        src/sys/arch/amd64/stand/prekern: console.c

Log Message:
When scrolling the screen don't forget to update the last line. Whatever,
there is no case where the screen scrolls actually.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/amd64/stand/prekern/console.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amd64/stand/prekern/console.c
diff -u src/sys/arch/amd64/stand/prekern/console.c:1.3 src/sys/arch/amd64/stand/prekern/console.c:1.4
--- src/sys/arch/amd64/stand/prekern/console.c:1.3	Fri Nov 17 07:07:52 2017
+++ src/sys/arch/amd64/stand/prekern/console.c	Wed Apr  3 19:14:25 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: console.c,v 1.3 2017/11/17 07:07:52 maxv Exp $	*/
+/*	$NetBSD: console.c,v 1.4 2019/04/03 19:14:25 maxv Exp $	*/
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -61,7 +61,7 @@ static void check_scroll(void)
 	memset(&cons_buffer[0] + (CONS_WID * 2) * (CONS_HEI-1), 0,
 	    (CONS_WID * 2));
 	cons_y--;
-	memcpy(cons_start, &cons_buffer[0], (CONS_WID * 2) * (CONS_HEI-1));
+	memcpy(cons_start, &cons_buffer[0], CONS_WID * 2 * CONS_HEI);
 }
 
 void print_ext(int color, char *buf)

Reply via email to