Use c_str() when passing a string to sprintf!

This commit is contained in:
Dr. Chat 2015-12-02 19:54:28 -06:00 committed by Ben Vanik
parent c44742b0e3
commit 1e36ea8b69
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ void XThread::set_last_error(uint32_t error_code) {
}
void XThread::set_name(const std::string& name) {
name_ = xe::format_string("%s (%.8X)", name, handle());
name_ = xe::format_string("%s (%.8X)", name.c_str(), handle());
if (thread_) {
// May be getting set before the thread is created.