[U-Boot] [PATCH 1/2] hashtable: fix the export lenght computation.
Pierre Aubert
p.aubert at staubli.com
Thu Nov 14 14:11:59 CET 2013
The room for the '=' and the sep char was reserved twice.
Signed-off-by: Pierre Aubert <p.aubert at staubli.com>
---
lib/hashtable.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/hashtable.c b/lib/hashtable.c
index 4356b23..480d207 100644
--- a/lib/hashtable.c
+++ b/lib/hashtable.c
@@ -623,7 +623,7 @@ ssize_t hexport_r(struct hsearch_data *htab, const char sep, int flag,
list[n++] = ep;
- totlen += strlen(ep->key) + 2;
+ totlen += strlen(ep->key);
if (sep == '\0') {
totlen += strlen(ep->data);
--
1.7.6.5
More information about the U-Boot
mailing list