diff --git a/src/starsphere/StarsphereS5R3.cpp b/src/starsphere/StarsphereS5R3.cpp index 88c2e5b9adf9765cb4b67fbfe525fcf48f33eeb7..e3400b9caeaf405acb80ff874e2f9591154201e4 100644 --- a/src/starsphere/StarsphereS5R3.cpp +++ b/src/starsphere/StarsphereS5R3.cpp @@ -114,9 +114,9 @@ void StarsphereS5R3::refreshBOINCInformation() // update current time string (clock) char cBuffer[10] = {0}; - time_t timeNow = time(0); - struct tm* timeLocal = localtime(&timeNow); - strftime(cBuffer, sizeof(cBuffer) - 1, "%H:%M:%S", timeLocal); + time_t timeNow = time(0); + struct tm* timeLocal = localtime(&timeNow); + strftime(cBuffer, sizeof(cBuffer) - 1, "%H:%M:%S", timeLocal); m_CurrentTime = string(cBuffer); }