mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
Use the actual size of the buffer in strftime instead of a made up value
which just happens to be less than sizeof(fstring). Closes #713.
This commit is contained in:
parent
66e5043553
commit
761e13da4e
@ -694,7 +694,7 @@ char *timestring(BOOL hires)
|
||||
".%06ld",
|
||||
(long)tp.tv_usec);
|
||||
} else {
|
||||
strftime(TimeBuf,100,"%Y/%m/%d %H:%M:%S",tm);
|
||||
strftime(TimeBuf,sizeof(TimeBuf)-1,"%Y/%m/%d %H:%M:%S",tm);
|
||||
}
|
||||
#else
|
||||
if (hires) {
|
||||
|
Loading…
Reference in New Issue
Block a user