From 332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Tue, 27 Jun 2023 20:23:44 +1000 Subject: The Formatting String Catastrophe --- source/utility/render_terrain_selector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/utility/render_terrain_selector.cpp') diff --git a/source/utility/render_terrain_selector.cpp b/source/utility/render_terrain_selector.cpp index a9e508a..570f6c0 100644 --- a/source/utility/render_terrain_selector.cpp +++ b/source/utility/render_terrain_selector.cpp @@ -67,7 +67,7 @@ int main(int argc, char** argv) { } } - coutf("Generating %s size image for selector with scale %s\n", size, scale); + coutf("Generating {} size image for selector with scale {}\n", size, scale); auto outputImage = make_shared(size, PixelFormat::RGB24); for (size_t x = 0; x < size[0]; ++x) { @@ -90,7 +90,7 @@ int main(int argc, char** argv) { outputImage->writePng(File::open("terrain.png", IOMode::Write)); return 0; } catch (std::exception const& e) { - cerrf("exception caught: %s\n", outputException(e, true)); + cerrf("exception caught: {}\n", outputException(e, true)); return 1; } } -- cgit v1.2.3