--- libaitcli/src/cli.c 2013/10/08 12:04:42 1.7 +++ libaitcli/src/cli.c 2013/10/08 12:11:49 1.8 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: cli.c,v 1.7 2013/10/08 12:04:42 misho Exp $ +* $Id: cli.c,v 1.8 2013/10/08 12:11:49 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -139,7 +139,7 @@ cli_Cmd_Config(void * __restrict cli_buffer, int idx, { linebuffer_t *buf = cli_buffer; - if (idx == sizeof idx * 8) + if (idx == sizeof idx * 8 - 1) return RETCODE_ERR; buf->line_level++;