commit | 9f071098db98214a2507df412d4390d09084d21d | [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 | 2f13ae5867ac78275c8fe798d98695276a3075ab [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>