--- libaitcli/src/aitcli.c 2020/09/01 23:19:55 1.17 +++ libaitcli/src/aitcli.c 2022/10/13 21:29:15 1.17.2.1 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitcli.c,v 1.17 2020/09/01 23:19:55 misho Exp $ +* $Id: aitcli.c,v 1.17.2.1 2022/10/13 21:29:15 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004 - 2020 +Copyright 2004 - 2022 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -978,7 +978,7 @@ cliInit(int fin, int fout, const char *prompt) linebuffer_t *cli_buffer; bindkey_t *keys; register int i; - char szPrompt[STRSIZ] = {[0 ... STRSIZ - 1] = 0}; + char szPrompt[STRSIZ + 16] = {[0 ... STRSIZ + 15] = 0}; /* init buffer */ cli_buffer = e_malloc(sizeof(linebuffer_t));