mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
common: command: tempory buffer should have size of command line buf
When copying the command line buffer the target array should at least have the same size. Cf. definition of console_buffer in common/cli_readline.c. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
3cc566117e
commit
2614a20847
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ static int find_common_prefix(char * const argv[])
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char tmp_buf[CONFIG_SYS_CBSIZE]; /* copy of console I/O buffer */
|
static char tmp_buf[CONFIG_SYS_CBSIZE + 1]; /* copy of console I/O buffer */
|
||||||
|
|
||||||
int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
|
int cmd_auto_complete(const char *const prompt, char *buf, int *np, int *colp)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue