diff options
author | Lioncash <mathew1800@gmail.com> | 2014-08-17 20:28:36 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2014-08-17 20:28:39 +0200 |
commit | 986dd27392932adbda10c3a560c716bf11dc61d3 (patch) | |
tree | b4f752f451127c31f0eef6d687153430dda3df67 /src/core | |
parent | Merge pull request #47 from archshift/stdstring (diff) | |
download | yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar.gz yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar.bz2 yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar.lz yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar.xz yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.tar.zst yuzu-986dd27392932adbda10c3a560c716bf11dc61d3.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/svc.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp index 19f717bd2..8720bed31 100644 --- a/src/core/hle/svc.cpp +++ b/src/core/hle/svc.cpp @@ -5,6 +5,7 @@ #include <map> #include <string> +#include "common/string_util.h" #include "common/symbols.h" #include "core/mem_map.h" @@ -220,9 +221,7 @@ Result CreateThread(u32 priority, u32 entry_point, u32 arg, u32 stack_top, u32 p TSymbol symbol = Symbols::GetSymbol(entry_point); name = symbol.name; } else { - char buff[100]; - sprintf(buff, "%s", "unknown-%08X", entry_point); - name = buff; + name = StringFromFormat("unknown-%08x", entry_point); } Handle thread = Kernel::CreateThread(name.c_str(), entry_point, priority, arg, processor_id, |