From 751ede516bf006edb9fca2610fc951bcc5eaf1d5 Mon Sep 17 00:00:00 2001 From: Desour Date: Wed, 20 Mar 2024 15:28:37 +0100 Subject: [PATCH] ProfilerGraph: Increase buffer size for min/max formatting Fixes values being cut off, e.g. "1.0000e+06" to "1.0000e+0". --- src/gui/profilergraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/profilergraph.cpp b/src/gui/profilergraph.cpp index f71ef3799..e6fdf9ae8 100644 --- a/src/gui/profilergraph.cpp +++ b/src/gui/profilergraph.cpp @@ -95,7 +95,7 @@ void ProfilerGraph::draw(s32 x_left, s32 y_bottom, video::IVideoDriver *driver, } const s32 texth = 15; - char buf[10]; + char buf[20]; if (floorf(show_max) == show_max) porting::mt_snprintf(buf, sizeof(buf), "%.5g", show_max); else