commit | c0855f2b98c0544a04313eb5dc6653a0fc4d9f2c | [log] [tgz] |
---|---|---|
author | Kristian Amlie <kristian.amlie@northern.tech> | Wed Apr 04 10:09:57 2018 +0200 |
committer | Tom Rini <trini@konsulko.com> | Tue Apr 10 15:19:15 2018 -0400 |
tree | caf763d47e8f3f8a4302d8635f524506726089b6 | |
parent | 0cb0c7ebfb4254e2b42e2f5a5bd2cc97b1be9c35 [diff] |
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: Kristian Amlie <kristian.amlie@northern.tech>