From 99f3dafe511cc75b088bfa6eaaae6203ef07dd1c Mon Sep 17 00:00:00 2001 From: Holger Berger Date: Fri, 13 Dec 2024 21:53:20 +0100 Subject: [PATCH] fix what AI messed up --- src/ws_restore.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } }