From 321091ad2093b5de40ffcd5e20e7fb26a30636e1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Mar 2000 18:00:30 +0000 Subject: Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime. Jeremy. (This used to be commit 87df97c9365a185e4ea6bac7b832b8cf38144624) --- source3/lib/time.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source3/lib/time.c b/source3/lib/time.c index 5fd260e5c9..3ac5a2a0b5 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -495,6 +495,8 @@ char *http_timestring(time_t t) else #ifndef HAVE_STRFTIME fstrcpy(buf, asctime(tm)); + if(buf[strlen(buf)-1] == '\n') + buf[strlen(buf)-1] = 0; #else /* !HAVE_STRFTIME */ strftime(buf, sizeof(buf)-1, "%a, %d %b %Y %H:%M:%S %Z", tm); #endif /* !HAVE_STRFTIME */ -- cgit