1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Fix from NAKAJI Hiroyuki for a trailing '\n\ in asctime.

Jeremy.
(This used to be commit 87df97c936)
This commit is contained in:
Jeremy Allison 2000-03-15 18:00:30 +00:00
parent 08607c3e0c
commit 321091ad20

View File

@ -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 */