summaryrefslogtreecommitdiff
path: root/graphics/openmvs/files/patch-libs_MVS_DepthMap.cpp
blob: 21c143ad6a944821fea530e1bf127306c8761208 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
- workarounf for https://github.com/cdcseacave/openMVS/issues/910

--- libs/MVS/DepthMap.cpp.orig	2022-11-30 10:06:45 UTC
+++ libs/MVS/DepthMap.cpp
@@ -2036,9 +2036,9 @@ bool MVS::ImportDepthDataRaw(const String& fileName, S
 	// read image file name
 	STATIC_ASSERT(sizeof(String::value_type) == sizeof(char));
 	uint16_t nFileNameSize;
-	fread(&nFileNameSize, sizeof(uint16_t), 1, f);
+	fread((void*)&nFileNameSize, sizeof(uint16_t), 1, f);
 	imageFileName.resize(nFileNameSize);
-	fread(imageFileName.data(), sizeof(char), nFileNameSize, f);
+	fread((void*)imageFileName.data(), sizeof(char), nFileNameSize, f);
 
 	// read neighbor IDs
 	STATIC_ASSERT(sizeof(uint32_t) == sizeof(IIndex));