diff options
author | jackpoz <giacomopoz@gmail.com> | 2018-02-24 13:09:00 +0100 |
---|---|---|
committer | jackpoz <giacomopoz@gmail.com> | 2018-02-24 13:09:00 +0100 |
commit | ff04121c83fcf01c32e44ccb137ff2062b4d0e92 (patch) | |
tree | fe61ef4913ecff4c5ea9383ba183337e91139ce2 /src/server/database/Updater/DBUpdater.cpp | |
parent | 83292cd983474753393017c4f7ac3ba509fc4c83 (diff) |
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
Diffstat (limited to 'src/server/database/Updater/DBUpdater.cpp')
-rw-r--r-- | src/server/database/Updater/DBUpdater.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/database/Updater/DBUpdater.cpp b/src/server/database/Updater/DBUpdater.cpp index 15e86109c81..50bb08b4ccf 100644 --- a/src/server/database/Updater/DBUpdater.cpp +++ b/src/server/database/Updater/DBUpdater.cpp @@ -282,10 +282,10 @@ bool DBUpdater<T>::Populate(DatabaseWorkerPool<T>& 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; } } |