From 23352f3419377b6bc6ff7b46a35c696dd4cdf3bf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 25 Jun 2015 12:34:27 -0400 Subject: [PATCH] xex_module: Fix formatting arguments These take a const char* not a std::string. --- src/xenia/cpu/xex_module.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xenia/cpu/xex_module.cc b/src/xenia/cpu/xex_module.cc index 66406d013..79921cdab 100644 --- a/src/xenia/cpu/xex_module.cc +++ b/src/xenia/cpu/xex_module.cc @@ -139,7 +139,7 @@ bool XexModule::SetupLibraryImports(const xe_xex2_import_library_t* library) { snprintf(name, xe::countof(name), "%s", kernel_export->name); } } else { - snprintf(name, xe::countof(name), "__imp_%s_%.3X", libname, + snprintf(name, xe::countof(name), "__imp_%s_%.3X", libname.c_str(), info->ordinal); } @@ -192,9 +192,10 @@ bool XexModule::SetupLibraryImports(const xe_xex2_import_library_t* library) { if (kernel_export) { snprintf(name, xe::countof(name), "%s", kernel_export->name); } else if (user_export_addr) { - snprintf(name, xe::countof(name), "__%s_%.3X", libname, info->ordinal); + snprintf(name, xe::countof(name), "__%s_%.3X", libname.c_str(), + info->ordinal); } else { - snprintf(name, xe::countof(name), "__kernel_%s_%.3X", libname, + snprintf(name, xe::countof(name), "__kernel_%s_%.3X", libname.c_str(), info->ordinal); }