summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-08 09:38:44 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-08 10:44:47 +0100
commita0bd56c0de93759dc6c75a6cbea2b0ceef36c322 (patch)
tree3569df0b711dbbad2a486e6d56197d2345657f72
parent9f0c5829509701c5567c225ce7ff8f5e71ceabfc (diff)
downloadbarebox-a0bd56c0de93759dc6c75a6cbea2b0ceef36c322.tar.gz
barebox-a0bd56c0de93759dc6c75a6cbea2b0ceef36c322.tar.xz
time command: Fix needed string length
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--commands/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/time.c b/commands/time.c
index 9a769451aa..c2633bac77 100644
--- a/commands/time.c
+++ b/commands/time.c
@@ -10,7 +10,7 @@ static int do_time(struct command *cmdtp, int argc, char *argv[])
unsigned char *buf;
u64 start, end, diff64;
unsigned long diff;
- int len = 0;
+ int len = 1; /* '\0' */
if (argc < 2)
return COMMAND_ERROR_USAGE;