Skip to content

Commit

Permalink
Use the "non secure" but more portable sprintf function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSFReader committed Dec 16, 2024
1 parent 57eb3bc commit ad4f93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiny_bvh_fenster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ad4f93a

Please sign in to comment.