From c3c8a9052ecdafc8e33afb058d85ab1e199c92bc Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sat, 15 Mar 2025 16:51:49 +0100 Subject: [PATCH] Silence warning on printf --- client/scenes/lobby_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/scenes/lobby_gui.cpp b/client/scenes/lobby_gui.cpp index 6efdac27..754a13bd 100644 --- a/client/scenes/lobby_gui.cpp +++ b/client/scenes/lobby_gui.cpp @@ -259,8 +259,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable & pin_requ { for (int j = 0; j < 3; j++, i++) { - char button_text[2]; - sprintf(button_text, "%d", i); + char button_text[] = {char('0' + i), 0}; if (ImGui::Button(button_text, constants::style::pin_entry_key_size)) pin_buffer += button_text; vibrate_on_hover();