Skip to content
Commit 8a0b827b authored by Kristian Amlie's avatar Kristian Amlie Committed by Tom Rini
Browse files

fw_printenv: Fix crash due to incorrect size for malloc'ed string.



Using sizeof gives the size of the pointer only, not the string. This
could easily lead to crashes when using -l argument.

Signed-off-by: default avatarKristian Amlie <kristian.amlie@northern.tech>
parent 2f8ffb06
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment