[U-Boot] [PATCH 1/2] hashtable: fix the export lenght computation.

Pierre AUBERT p.aubert at staubli.com
Fri Nov 15 08:09:59 CET 2013


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 at 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
>



More information about the U-Boot mailing list