[PATCH 1/1] Fix bug in export 64 bit unsigned environment variable.

Sascha Hauer s.hauer at pengutronix.de
Tue Apr 29 23:56:05 PDT 2014


On Tue, Apr 29, 2014 at 03:16:02PM -0400, Michael D. Burkey wrote:
> This patch corrects exporting unsigned 64-bit environment variables.
> I had left out a signed off line before.
> 
> Signed-off-by: Michael Burkey <mdburkey at gmail.com>

Applied, thanks

Sascha

> ---
> 
> 
> --- a/common/env.c
> +++ b/common/env.c
> @@ -258,7 +258,7 @@
> 
>  void export_env_ull(const char *name, unsigned long long val)
>  {
> -       char *valstr = asprintf("%lld", val);
> +       char *valstr = asprintf("%llu", val);
> 
>         setenv(name, valstr);
>         export(name);
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list