]> Zhao Yanbai Git Server - minix.git/commitdiff
arm:cleanup add assert.
authorKees Jongenburger <keesj@minix3.org>
Wed, 10 Apr 2013 14:53:18 +0000 (16:53 +0200)
committerKees Jongenburger <keesj@minix3.org>
Fri, 12 Apr 2013 18:52:57 +0000 (20:52 +0200)
drivers/tty/tty.c

index c1dc41a02ef552cc106dba28f485d7d1bbcc58f3..aaa442d8f902f380905f2fa1651e7f566da63f33 100644 (file)
@@ -426,6 +426,7 @@ set_console_line(char term[CONS_ARG])
        }
 
        /* Serial lines */
+       assert(NR_RS_LINES <= 9);/* bellow assumes this is the case */
        for (i = 0; i < NR_RS_LINES; i++) {
                char sercons[6];
                strlcpy(sercons, "tty00", sizeof(sercons));