From 74d7d097e44030b1c841eb1f59a7b13490b4216b Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Tue, 29 Dec 2020 13:34:24 +0100 Subject: [PATCH] mescc: Mes C Library: isatty: Use fixed array size for M2-Planet. * lib/m2/isatty.c (struct ktermios)[c_cc]: Hardcode to size 19. --- lib/m2/isatty.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/m2/isatty.c b/lib/m2/isatty.c index cf24b0be..babde375 100644 --- a/lib/m2/isatty.c +++ b/lib/m2/isatty.c @@ -1,6 +1,6 @@ /* -*-comment-start: "//";comment-end:""-*- * GNU Mes --- Maxwell Equations of Software - * Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen + * Copyright © 2016,2017,2018,2019,2020 Jan (janneke) Nieuwenhuizen * * This file is part of GNU Mes. * @@ -27,9 +27,6 @@ // CONSTANT TCGETS 0x5401 #define TCGETS 0x5401 -// CONSTANT NCCS 19 -#define NCCS 19 - struct ktermios { unsigned c_iflag; @@ -37,7 +34,7 @@ struct ktermios unsigned c_cflag; unsigned c_lflag; char c_line; - char c_cc[NCCS]; + char c_cc[19]; unsigned c_ispeed; unsigned c_ospeed; };