diff --git a/src/ProfileManager/ProfileManager.cpp b/src/ProfileManager/ProfileManager.cpp index a42d893..5037234 100644 --- a/src/ProfileManager/ProfileManager.cpp +++ b/src/ProfileManager/ProfileManager.cpp @@ -142,7 +142,7 @@ ProfileManager::backupProfile(std::size_t index, bool backup_builds) { auto& profile = _profiles[index]; auto filename = Utility::format("{}_{}{:.2d}{:.2d}_{:.2d}{:.2d}{:.2d}.backup.mbst", - Utility::String::replaceAll(profile.companyName().data(), " ", "_").c_str(), + Utility::String::replaceAll(profile.companyName().data(), " ", "_").data(), time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, time->tm_hour, time->tm_min, time->tm_sec);