lib/util/time: strip a potential trailing newline in the asctime case.
commit762dd3cf29788a9f8ab66fd96ad2b9cc20f621f3
authorMichael Adam <obnox@samba.org>
Wed, 13 Feb 2013 15:51:54 +0000 (13 16:51 +0100)
committerMichael Adam <obnox@samba.org>
Tue, 19 Feb 2013 12:58:08 +0000 (19 13:58 +0100)
treebb4cf8fe357c68addcbb24b65c5adc88d0fb9869
parent4d3928a8f494661764f4a3367b2f1b94772dedf9
lib/util/time: strip a potential trailing newline in the asctime case.

If strftime() is not available, asctime() is used, and this usually
appends a newline character to the result. This is not desired for
timestamp().

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/util/time.c