summaryrefslogtreecommitdiff
path: root/libcamera-rpi-0.3.2-arch.patch
blob: 108dc9d03941aa29dbb244c49f24ffa6fb39ad03 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- libcamera-rpi-0.3.2/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp	2024-10-20 21:38:58.492510656 +0200
+++ libcamera-rpi-0.3.2-arch/src/ipa/rpi/cam_helper/cam_helper_imx500.cpp	2024-10-20 21:23:25.628222018 +0200
@@ -257,7 +257,7 @@
 				exported.height = inputTensorInfo.height;
 				exported.numChannels = inputTensorInfo.channels;
 				strncpy(exported.networkName, inputTensorInfo.networkName.c_str(),
-					sizeof(exported.networkName));
+					sizeof(exported.networkName) - 1);
 				exported.networkName[sizeof(exported.networkName) - 1] = '\0';
 				metadata.set("cnn.input_tensor_info", exported);
 				metadata.set("cnn.input_tensor", std::move(inputTensorInfo.data));