From 1e36ea8b6930ce5edfee87e4d5d0acbadc5a661b Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Wed, 2 Dec 2015 19:54:28 -0600 Subject: [PATCH] Use c_str() when passing a string to sprintf! --- src/xenia/kernel/xthread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenia/kernel/xthread.cc b/src/xenia/kernel/xthread.cc index d9fbd6f48..ccd9e1cd7 100644 --- a/src/xenia/kernel/xthread.cc +++ b/src/xenia/kernel/xthread.cc @@ -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.