Skip to content

Commit caf840a

Browse files
committed
ofxsProperty: workaround for a clang>=14 bug with -O2
Bug observed on OSX 10.9 (causes a segfault)
1 parent d5db5d0 commit caf840a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Support/Library/ofxsProperty.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ namespace OFX {
212212
for (std::size_t i = 0; i < values.size(); ++i) {
213213
data[i] = values[i].c_str();
214214
}
215-
OfxStatus stat = gPropSuite->propSetStringN(_propHandle, property, (int)values.size(), &data[0]);
215+
OfxStatus stat = gPropSuite->propSetStringN(_propHandle, property, (int)data.size(), &data[0]);
216216
OFX::Log::error(stat != kOfxStatOK, "Failed on setting string property %s[0..%d], host returned status %s;",
217217
property, (int)values.size()-1, mapStatusToString(stat));
218218
if(throwOnFailure)

0 commit comments

Comments
 (0)