From d2b77ca075e43eee5937e486a811e356b68e8418 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 24 Feb 2018 13:09:00 +0100 Subject: Core/DBUpdater: Fix error message Fix error message when trying to populate the database showing free'd memory data instead of the sql file name --- src/server/database/Updater/DBUpdater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/database/Updater/DBUpdater.cpp') diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index e560e204185..32e8fd0371e 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -314,10 +314,10 @@ bool DBUpdater::Populate(DatabaseWorkerPool& pool) } case LOCATION_DOWNLOAD: { - const char* filename = base.filename().generic_string().c_str(); - const char* workdir = boost::filesystem::current_path().generic_string().c_str(); + std::string const filename = base.filename().generic_string(); + std::string const workdir = boost::filesystem::current_path().generic_string().c_str(); TC_LOG_ERROR("sql.updates", ">> File \"%s\" is missing, download it from \"https://github.com/TrinityCore/TrinityCore/releases\"" \ - " uncompress it and place the file \"%s\" in the directory \"%s\".", filename, filename, workdir); + " uncompress it and place the file \"%s\" in the directory \"%s\".", filename.c_str(), filename.c_str(), workdir.c_str()); break; } } -- cgit v1.2.3