mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-13 04:38:28 +00:00
ZeroTierOne for Windows binary project, builds and runs and mostly works but still some issues with tap.
This commit is contained in:
@ -107,7 +107,12 @@ void Logger::trace(const char *module,unsigned int line,const char *fmt,...)
|
||||
|
||||
if (_log) {
|
||||
time_t now = time(0);
|
||||
#ifdef __WINDOWS__
|
||||
ctime_s(tmp,sizeof(tmp),&now);
|
||||
char *nowstr = tmp;
|
||||
#else
|
||||
char *nowstr = ctime_r(&now,tmp);
|
||||
#endif
|
||||
for(char *c=nowstr;*c;++c) {
|
||||
if (*c == '\n')
|
||||
*c = '\0';
|
||||
|
Reference in New Issue
Block a user