cmd: date: Do not overwrite arguments
authorRoman Kapl <rka@sysgo.com>
Fri, 8 Feb 2019 09:01:02 +0000 (10:01 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Feb 2019 13:55:43 +0000 (08:55 -0500)
commit44ac80e7e90ff1c6630b64b3babe03cc6bdef46a
treed72c8b66d1f3bf17ed5fb0953d869ecc8dc59c80
parent957f51e86367e14be9e40cfe5cc3a494fc17abcf
cmd: date: Do not overwrite arguments

Arguments are const and belong to the caller. Calling date in a hush
loop will yield different results from the second invocation.

Signed-off-by: Roman Kapl <rka@sysgo.com>
cmd/date.c