diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-08 09:38:44 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-12-08 13:46:36 +0100 |
commit | 0e431414030ef591da2c992bd6aeceb9fe2c877b (patch) | |
tree | 3569df0b711dbbad2a486e6d56197d2345657f72 /commands/time.c | |
parent | 4bc6ff2f6518a1e2e4a952a1b70be388d57e1a6a (diff) | |
download | barebox-0e431414030ef591da2c992bd6aeceb9fe2c877b.tar.gz barebox-0e431414030ef591da2c992bd6aeceb9fe2c877b.tar.xz |
time command: Fix needed string length
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/time.c')
-rw-r--r-- | commands/time.c | 2 |
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; |