mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 09:58:32 +00:00
h/mercury: Don't write over allocated string size.
Fixes GCC 13 warning [-Wstringop-truncation].
This commit is contained in:
parent
68faf2bc89
commit
634fa71fda
|
@ -1088,7 +1088,7 @@ t_hand_tracking_sync_mercury_create(struct t_stereo_camera_calibration *calib,
|
||||||
// We have to reference it, getCalibration points at it.
|
// We have to reference it, getCalibration points at it.
|
||||||
t_stereo_camera_calibration_reference(&hgt->calib, calib);
|
t_stereo_camera_calibration_reference(&hgt->calib, calib);
|
||||||
getCalibration(hgt, *calib);
|
getCalibration(hgt, *calib);
|
||||||
strncpy(hgt->models_folder, models_folder, ARRAY_SIZE(hgt->models_folder));
|
strncpy(hgt->models_folder, models_folder, ARRAY_SIZE(hgt->models_folder) - 1);
|
||||||
|
|
||||||
|
|
||||||
hgt->views[0].hgt = hgt;
|
hgt->views[0].hgt = hgt;
|
||||||
|
|
Loading…
Reference in a new issue