[U-Boot] [PATCH] tools/env: fix allocation of the lock file name in fw_printenv

2017-07-22 Thread sgerwk
[resending with a signed-off-by field...] sizeof(env_opts.lockname) is the size of the pointer, not of the string; this patch changes it to strlen(...) --- tools/env/fw_env_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.

[U-Boot] [PATCH] tools/env: fix allocation of the lock file name in fw_printenv

2017-07-12 Thread sgerwk
sizeof(env_opts.lockname) is the size of the pointer, not of the string; this patch changes it to strlen(...) --- tools/env/fw_env_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index b8bff264eb..499953dd69 100644 --- a

[U-Boot] [PATCH] tools/env: fix allocation of the lock file name in fw_printenv

2017-07-06 Thread sgerwk
sizeof(env_opts.lockname) is the size of the pointer, not of the string; this patch changes it to strlen(...) --- tools/env/fw_env_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env_main.c b/tools/env/fw_env_main.c index b8bff264eb..499953dd69 100644 --- a