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
This commit is contained in:
jackpoz
2018-02-24 13:09:00 +01:00
committed by Aokromes
parent 80c3304daf
commit d2b77ca075

View File

@@ -314,10 +314,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;
}
}