[U-Boot] [U-Boot, v3, 01/10] fw_env.c: Switch get_config to use '%ms' in sscanf

Tom Rini trini at ti.com
Fri Apr 18 15:21:55 CEST 2014


On Fri, Mar 28, 2014 at 12:03:33PM -0400, Tom Rini wrote:

> We currently limit ourself to 16 characters for the device name to read
> the environment from.  This is insufficient for /dev/mmcblk0boot1 to
> work for example.  Switch to '%ms' which gives us a dynamically
> allocated buffer instead.  We're short lived enough to not bother
> free()ing the buffer.
> 
> Signed-off-by: Tom Rini <trini at ti.com>

Applied to u-boot-ti/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/e6987504/attachment.pgp>


More information about the U-Boot mailing list