summaryrefslogtreecommitdiffstats
path: root/common/env.c
diff options
context:
space:
mode:
authorMichael D. Burkey <mdburkey@gmail.com>2014-04-29 15:16:02 -0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-30 08:55:47 +0200
commita8334c68c9fa81a9ccf35fe717d6eee7b02eada9 (patch)
treeca7f90937ef51ab74d06d451737ff8940acb0781 /common/env.c
parenteecac38c2ca17f49c67429b94fded33f46406702 (diff)
downloadbarebox-a8334c68c9fa81a9ccf35fe717d6eee7b02eada9.tar.gz
Fix bug in export 64 bit unsigned environment variable.
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> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/env.c')
-rw-r--r--common/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env.c b/common/env.c
index 748b655..2e33eb3 100644
--- a/common/env.c
+++ b/common/env.c
@@ -258,7 +258,7 @@ EXPORT_SYMBOL(export);
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);