From: Pierre Aubert
Date: Thu, 14 Nov 2013 14:11:59 +0100
Subject: [U-Boot] [PATCH 1/2] hashtable: fix the export lenght computation.
In-Reply-To: <1384434720-11214-1-git-send-email-p.aubert@staubli.com>
References: <1384434720-11214-1-git-send-email-p.aubert@staubli.com>
Message-ID: <1384434720-11214-2-git-send-email-p.aubert@staubli.com>
List-Id:
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: u-boot@lists.denx.de
The room for the '=' and the sep char was reserved twice.
Signed-off-by: Pierre Aubert
---
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