commit | b4cf9424d3c98c10373390fb0c7b744cbe905aaa | [log] [tgz] |
---|---|---|
author | Miquel Raynal <miquel.raynal@bootlin.com> | Thu Sep 06 09:08:44 2018 +0200 |
committer | Jagan Teki <jagan@amarulasolutions.com> | Thu Sep 20 20:11:01 2018 +0530 |
tree | fd7d9f081c794c300828f3eb2c479ff983e8e2dc | |
parent | 5823a75cd04ad53f68bc6f9ba111954361dc8192 [diff] |
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: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Stefan Roese <sr@denx.de>