diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/time.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |