commit | 657e14da835298a948eb313feffba6732fe9232e | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Oct 01 19:13:14 2023 -0600 |
committer | Tom Rini <trini@konsulko.com> | Wed Oct 11 15:43:54 2023 -0400 |
tree | 782dfcacaefb736cd317f6e054efd30860e3f396 | |
parent | e5509ce87b29f773b045200735bec2903b72eed4 [diff] |
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>