diff --git a/Source/CTest/cmCTestVC.cxx b/Source/CTest/cmCTestVC.cxx index cb4aa2d25..ccc6fcb4f 100644 --- a/Source/CTest/cmCTestVC.cxx +++ b/Source/CTest/cmCTestVC.cxx @@ -86,7 +86,7 @@ std::string cmCTestVC::GetNightlyTime() t->tm_hour, t->tm_min, t->tm_sec); - return current_time; + return std::string(current_time); } //----------------------------------------------------------------------------