From: Joseph Sutton Date: Tue, 8 Aug 2023 03:38:26 +0000 (+1200) Subject: s3:lib: Consistently return a string with a trailing newline X-Git-Tag: tevent-0.16.0~1157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34545cdf3d88f3fc564268eefb7a1e1991f543a5;p=thirdparty%2Fsamba.git s3:lib: Consistently return a string with a trailing newline Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/lib/time.c b/source3/lib/time.c index c61c523952a..3b96a9d690c 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -406,12 +406,12 @@ const char *time_to_asc(const time_t t) struct tm *lt = localtime(&t); if (!lt) { - return "unknown time"; + return "unknown time\n"; } asct = asctime(lt); if (!asct) { - return "unknown time"; + return "unknown time\n"; } return asct; }