]> git.dujemihanovic.xyz Git - u-boot.git/commit
cli: Terminate the string in cread_line_process_ch()
authorSimon Glass <sjg@chromium.org>
Mon, 2 Oct 2023 01:13:14 +0000 (19:13 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 11 Oct 2023 19:43:54 +0000 (15:43 -0400)
commit657e14da835298a948eb313feffba6732fe9232e
tree782dfcacaefb736cd317f6e054efd30860e3f396
parente5509ce87b29f773b045200735bec2903b72eed4
cli: Terminate the string in cread_line_process_ch()

Rather than relying on the caller, terminate the string inside this
function. Do this each time we return, whether input is finished or
not. It is not needed when the input is aborted, since the string will
be discarded in that case.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/cli_readline.c