mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r218: added a comment regarding the %c strftime() warning
This commit is contained in:
parent
995f54b208
commit
03c5dd8855
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user