From: Kees Jongenburger Date: Wed, 10 Apr 2013 14:53:18 +0000 (+0200) Subject: arm:cleanup add assert. X-Git-Tag: v3.3.0~1033 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=9d9456ef7d39fd6953dd345f9010ac5d727ce3c9;p=minix.git arm:cleanup add assert. --- diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index c1dc41a02..aaa442d8f 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -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));