--- libaitcli/src/aitcli.c 2025/12/25 20:24:32 1.21.2.9 +++ libaitcli/src/aitcli.c 2025/12/25 20:35:07 1.22 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.c,v 1.21.2.9 2025/12/25 20:24:32 misho Exp $ +* $Id: aitcli.c,v 1.22 2025/12/25 20:35:07 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -240,9 +240,13 @@ bufCHAR(int idx, void * __restrict cli_buffer) static int bufEOLin(int idx, void * __restrict cli_buffer) { + linebuffer_t *buf = cli_buffer; + int ign __attribute__((unused)); + if (!cli_buffer || idx < 0 || idx > MAX_BINDKEY) return RETCODE_ERR; + ign = write(buf->line_out, K_ENTER, 1); return RETCODE_EOL; }