mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 13:16:38 +00:00
st/gui: Fix warning
This commit is contained in:
parent
67339a4d7c
commit
e066f6a828
|
@ -217,9 +217,8 @@ scene_render(struct gui_scene *scene, struct gui_program *p)
|
|||
|
||||
bool checked = ts->editing_override == (int)i;
|
||||
|
||||
const int len = XRT_DEVICE_NAME_LEN * 2 + 10;
|
||||
char buf[len];
|
||||
snprintf(buf, len, "%s <- %s", ts->overrides[i].target_device_serial,
|
||||
char buf[XRT_DEVICE_NAME_LEN * 2 + 10];
|
||||
snprintf(buf, sizeof(buf), "%s <- %s", ts->overrides[i].target_device_serial,
|
||||
ts->overrides[i].tracker_device_serial);
|
||||
if (igCheckbox(buf, &checked)) {
|
||||
ts->editing_override = i;
|
||||
|
|
Loading…
Reference in a new issue