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

Michael D. Burkey mdburkey at gmail.com
Tue Apr 29 12:16:02 PDT 2014


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


--- 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);



More information about the barebox mailing list