The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/slam: fix snprintf warning

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2140>

authored by

Simon Zeni and committed by
Simon Zeni
7bbb6d68 953712fb

+2 -2
+2 -2
src/xrt/auxiliary/tracking/t_tracker_slam.cpp
··· 1075 1075 u_var_add_ro_ff_vec3_f32(&t, t.accel_ff, "Accelerometer"); 1076 1076 u_var_add_f32(&t, &t.gravity_correction.z, "Gravity Correction"); 1077 1077 for (size_t i = 0; i < t.ui_sink.size(); i++) { 1078 - char label[] = "Camera NNNN"; 1079 - (void)snprintf(label, sizeof(label), "Camera %zu", i); 1078 + char label[64] = {0}; 1079 + snprintf(label, sizeof(label), "Camera %zu", i); 1080 1080 u_var_add_sink_debug(&t, &t.ui_sink[i], label); 1081 1081 } 1082 1082