1
0
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:
Andrew Tridgell 2004-04-14 16:02:30 +00:00 committed by Gerald (Jerry) Carter
parent 995f54b208
commit 03c5dd8855

View File

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