Skip to content
Snippets Groups Projects
Commit 229695fe authored by Tom Rini's avatar Tom Rini
Browse files

fw_env.c: Switch get_config to use '%ms' in sscanf


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: default avatarTom Rini <trini@ti.com>
parent 548a64d8
No related branches found
No related tags found
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