commit | 20888f3e948100609889c6eeea730696e1fcfcfc | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun Apr 24 23:30:57 2022 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon Apr 25 10:00:03 2022 -0400 |
tree | 333f3a7ff758dc6b9a32207fc8061c8f15bcca8a | |
parent | b2c6f097288b80e005e41d922751b9121ae490e8 [diff] |
lib: Fix a few bugs in trailing_strtoln() At present this has a minor bug in that it reads the byte before the start of the string, if it is empty. Also it doesn't handle a non-numeric prefix which is only one character long. Fix these bugs with a reworked implementation. Add a test for the second case. The first one is hard to test. Signed-off-by: Simon Glass <sjg@chromium.org>