We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05c544 commit de2dff5Copy full SHA for de2dff5
1 file changed
src/common/time.h
@@ -92,8 +92,8 @@ static inline const char* ffTimeToTimeStr(uint64_t msec)
92
time_t tsec = (time_t) (msec / 1000);
93
94
extern char ffTimeInternalBuffer[64];
95
- strftime(ffTimeInternalBuffer, ARRAY_SIZE(ffTimeInternalBuffer), "%T", localtime(&tsec));
96
- sprintf(ffTimeInternalBuffer + __builtin_strlen("00:00:00"), ".%03u", (unsigned) (msec % 1000));
+ uint32_t len = (uint32_t) strftime(ffTimeInternalBuffer, ARRAY_SIZE(ffTimeInternalBuffer), "%T", localtime(&tsec));
+ sprintf(ffTimeInternalBuffer + len, ".%03u", (unsigned) (msec % 1000));
97
return ffTimeInternalBuffer;
98
}
99
0 commit comments