Quick Updates

svn path=/branches/boinc_core_release_6_12/; revision=22814
This commit is contained in:
Rom Walton 2010-12-02 20:48:32 +00:00
parent 40f6e26b28
commit 9c8d536b46
1 changed files with 4 additions and 0 deletions

View File

@ -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;
} }