Skip to content
Commit b87b0d8d authored by Miquel Raynal's avatar Miquel Raynal Committed by Jagan Teki
Browse files

lib: strto: fix metric suffix parsing in strtoul[l]



While 1kB or 1kiB will be parsed correctly, 1k will return the right
amount, but the metric suffix will not be escaped once the char
pointer updated. Fix this situation by simplifying the move of the
endp pointer.

Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent a353e6aa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment