Просмотр исходного кода

Merge pull request #54 from lioncash/fmt

Core: Fix a formatting error in svc.cpp
bunnei 12 лет назад
Родитель
Сommit
0e7d10c5ad
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/core/hle/svc.cpp

+ 2 - 3
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,