Skip to content
Snippets Groups Projects
Commit d667a0d8 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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's avatarSimon Glass <sjg@chromium.org>
parent 4e64cae0
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment