mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-24 11:01:43 -08:00
Silence warning on printf
This commit is contained in:
1 parent
a3c9f01ed7
commit
c3c8a9052e
1 file changed
+1
-2
@@ -259,8 +259,7 @@ void scenes::lobby::gui_enter_pin(locked_notifiable<pin_request_data> & 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();
|
||||
|
||||
Reference in new issue
Block a user