diff --git a/src/ws_restore.cpp b/src/ws_restore.cpp index 0aba79f..a35ec56 100644 --- a/src/ws_restore.cpp +++ b/src/ws_restore.cpp @@ -363,8 +363,7 @@ int main(int argc, char **argv) { std::vector splitted; boost::split(splitted, dn, boost::is_any_of("-")); time_t t = atol(splitted[splitted.size()-1].c_str()); - char buffer[26]; - cout << "\tunavailable since " << std::ctime_r(&t, buffer); + cout << "\tunavailable since " << std::ctime(&t); } }