From ad4f93a235a99f070afd20734d65be14629a3efc Mon Sep 17 00:00:00 2001 From: thesfreader Date: Mon, 16 Dec 2024 15:40:41 +0100 Subject: [PATCH] Use the "non secure" but more portable sprintf function --- tiny_bvh_fenster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_bvh_fenster.cpp b/tiny_bvh_fenster.cpp index f476e31..5e1bee5 100644 --- a/tiny_bvh_fenster.cpp +++ b/tiny_bvh_fenster.cpp @@ -113,7 +113,7 @@ bool UpdateCamera(float delta_time_s, fenster& f) void Tick(float delta_time_s, fenster & f, uint32_t* buf) { char title[50]; - sprintf_s(title, 49, "tiny_bvh %.2f s %.2f Hz", delta_time_s, 1.0f / delta_time_s); + sprintf(title, "tiny_bvh %.2f s %.2f Hz", delta_time_s, 1.0f / delta_time_s); fenster_update_title(&f, title); // handle user input and update camera bool moved = UpdateCamera(delta_time_s, f) || frameIdx++ == 0;