mirror of https://github.com/BOINC/boinc.git
Quick Updates
svn path=/branches/boinc_core_release_6_12/; revision=22814
This commit is contained in:
parent
40f6e26b28
commit
9c8d536b46
|
@ -203,7 +203,11 @@ char* boinc_msg_prefix(char* sbuf, int len) {
|
||||||
strcpy(sbuf, "time() failed");
|
strcpy(sbuf, "time() failed");
|
||||||
return sbuf;
|
return sbuf;
|
||||||
}
|
}
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (localtime_s(&tm, &x) == EINVAL) {
|
||||||
|
#else
|
||||||
if (localtime_r(&x, &tm) == NULL) {
|
if (localtime_r(&x, &tm) == NULL) {
|
||||||
|
#endif
|
||||||
strcpy(sbuf, "localtime() failed");
|
strcpy(sbuf, "localtime() failed");
|
||||||
return sbuf;
|
return sbuf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue