From 01f5fed18cf30cc5ab00d982d1e1bfdeceeca862 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Fri, 14 Nov 2014 18:09:48 +0000 Subject: [PATCH] start: fix screw up in tty changes --- Kernel/start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/start.c b/Kernel/start.c index ef91e4bf..0f0fe5d0 100644 --- a/Kernel/start.c +++ b/Kernel/start.c @@ -22,10 +22,10 @@ static struct termios ttydflt = { }; void tty_init(void) { - struct termios *t = &ttydata[1]; + struct tty *t = &ttydata[1]; int i; for(i = 1; i <= NUM_DEV_TTY; i++) { - memcpy(t, &ttydflt, sizeof(struct termios)); + memcpy(&t->termios, &ttydflt, sizeof(struct termios)); t++; } } -- 2.34.1