diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-04-14 16:02:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:17 -0500 |
commit | b8ae2559a74134a98480ff6e36c72beb3ab050c1 (patch) | |
tree | abee0a33abe8458fb91fd2cde4913beef1819e87 /source4 | |
parent | 5201ae9b317a10377bc210228dc492a32eb2638c (diff) | |
download | samba-b8ae2559a74134a98480ff6e36c72beb3ab050c1.tar.gz samba-b8ae2559a74134a98480ff6e36c72beb3ab050c1.tar.bz2 samba-b8ae2559a74134a98480ff6e36c72beb3ab050c1.zip |
r218: added a comment regarding the %c strftime() warning
(This used to be commit 03c5dd88558bdd9ca714e6842ea65fa3b667657e)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/lib/time.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/time.c b/source4/lib/time.c index d6c6396996..0aef931fe0 100644 --- a/source4/lib/time.c +++ b/source4/lib/time.c @@ -358,6 +358,10 @@ char *timestring(TALLOC_CTX *mem_ctx, time_t t) } #ifdef HAVE_STRFTIME + /* some versions of gcc complain about using %c. This is a bug + in the gcc warning, not a bug in this code. See a recent + strftime() manual page for details. + */ strftime(tempTime,sizeof(tempTime)-1,"%c %Z",tm); TimeBuf = talloc_strdup(mem_ctx, tempTime); #else |