From 2ed2ce954555e68491ae6d3a7afeb393fcaf5cbe Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 7 Mar 2010 15:22:14 -0200 Subject: [PATCH] Modified an ase_exception call using printf style call. --- src/core/modules.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/modules.cpp b/src/core/modules.cpp index c8cff7d60..202b0c41f 100644 --- a/src/core/modules.cpp +++ b/src/core/modules.cpp @@ -65,7 +65,8 @@ LegacyModules::LegacyModules(int requirements) PRINTF("Installing module: %s\n", module[c].name); if ((*module[c].init)() < 0) - throw ase_exception(std::string("Error initializing module: ") + module[c].name); + throw ase_exception("Error initializing module: %s", + static_cast(module[c].name)); module[c].installed = true; }