From mboxrd@z Thu Jan 1 00:00:00 1970
From: Pierre AUBERT
Date: Fri, 15 Nov 2013 08:09:59 +0100
Subject: [U-Boot] [PATCH 1/2] hashtable: fix the export lenght
computation.
In-Reply-To: <20131114172544.B0D55380C60@gemini.denx.de>
References: <1384434720-11214-1-git-send-email-p.aubert@staubli.com>
<1384434720-11214-2-git-send-email-p.aubert@staubli.com>
<20131114172544.B0D55380C60@gemini.denx.de>
Message-ID: <5285C8C7.80503@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
Dear Wolfgang Denk,
Le 14/11/2013 18:25, Wolfgang Denk a ?crit :
> Dear Pierre Aubert,
>
> In message <1384434720-11214-2-git-send-email-p.aubert@staubli.com> you wrote:
>> The room for the '=' and the sep char was reserved twice.
> Are you sure? Keep in mind that the termination of the list is a
> _double_ NUL byte. IIRC this is what we do here.
Yes, I'm sure. The termination of the list (last NULL after the last
separator) is added at line 666
> 666 size = totlen + 1;
In the actual code, the lenght is two large of 2 char for each exported
variable.
Best regards
>
> Best regards,
>
> Wolfgang Denk
>