diff options
author | Jeremy Allison <jra@samba.org> | 2000-03-15 18:00:30 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-03-15 18:00:30 +0000 |
commit | 321091ad2093b5de40ffcd5e20e7fb26a30636e1 (patch) | |
tree | 1f56e17d15168318bcfc338fa4e42b70b99fd8c1 /source3 | |
parent | 08607c3e0ce5fa5c43b236ca379ed5aaa66ed858 (diff) | |
download | samba-321091ad2093b5de40ffcd5e20e7fb26a30636e1.tar.gz samba-321091ad2093b5de40ffcd5e20e7fb26a30636e1.tar.bz2 samba-321091ad2093b5de40ffcd5e20e7fb26a30636e1.zip |
Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.
Jeremy.
(This used to be commit 87df97c9365a185e4ea6bac7b832b8cf38144624)
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 */ |