The open source OpenXR runtime
0
fork

Configure Feed

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

c/main: fix snprintf output truncation

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

+1 -1
+1 -1
src/xrt/compositor/main/comp_compositor.c
··· 1101 1101 1102 1102 // Only add active views. 1103 1103 for (uint32_t i = 0; i < view_count; i++) { 1104 - char tmp[] = "View[X_XXX_XXX]"; 1104 + char tmp[64] = {0}; 1105 1105 snprintf(tmp, sizeof(tmp), "View[%u]", i); 1106 1106 u_var_add_native_images_debug(c, &c->scratch.views[i].unid, tmp); 1107 1107 }