mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user