On Friday 17 August 2012 16:49:36 Joe Hershberger wrote:
--- a/tools/env/fw_env.c
+++ b/tools/env/fw_env.c
- memset(value, 0, len - strlen(name));
+ memset(value, 0, len);
side note: this memset is mostly useles as the value buffer largely gets
The length included the name length, and then it was subtracted back
out on each use. Now we don't include it in the first place.
Signed-off-by: Joe Hershberger joe.hershber...@ni.com
---
tools/env/fw_env.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git
2 matches
Mail list logo