diff --git a/src/app.cpp b/src/app.cpp index 957a350ac..f8202c987 100644 --- a/src/app.cpp +++ b/src/app.cpp @@ -130,8 +130,8 @@ App::App(int argc, char* argv[]) pal = palette_load(palette_filename); if (pal == NULL) - throw ase_exception(std::string("Error loading default palette from: ") - + palette_filename); + throw ase_exception("Error loading default palette from: %s", + static_cast(palette_filename)); set_default_palette(pal); palette_free(pal);