start: fix screw up in tty changes
authorAlan Cox <alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 18:09:48 +0000 (18:09 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Fri, 14 Nov 2014 18:09:48 +0000 (18:09 +0000)
Kernel/start.c

index ef91e4b..0f0fe5d 100644 (file)
@@ -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++;
         }
 }