Fix potential security issues.

This commit is contained in:
Kim Kulling
2019-02-05 22:05:52 +01:00
parent 0f8f1449a1
commit 6e39c22554
7 changed files with 41 additions and 54 deletions
+5
View File
@@ -760,7 +760,12 @@ public:
if (!out) return;
time_t tt = time(NULL);
#if _WIN32
tm* p = gmtime(&tt);
#else
struct tm now;
tm* p = gmtime_r(&tt, &now);
#endif
// header
char s[64];