[ox/oc] Fix writeOC Writer_c variant to add null terminator
Build / build (push) Successful in 1m10s
Build / build (push) Successful in 1m10s
This commit is contained in:
+2
-2
@@ -261,8 +261,8 @@ Error writeOC(Writer_c auto &writer, auto const &val) noexcept {
|
||||
OX_RETURN_ERROR(model(&handler, &val));
|
||||
Json::StreamWriterBuilder const jsonBuilder;
|
||||
auto const str = Json::writeString(jsonBuilder, ocWriter.m_json);
|
||||
writer.write(str.data(), str.size());
|
||||
return {};
|
||||
OX_RETURN_ERROR(writer.write(str.data(), str.size()));
|
||||
return writer.put('\0');
|
||||
}
|
||||
|
||||
Result<Buffer> writeOC(auto const &val) noexcept {
|
||||
|
||||
Reference in New Issue
Block a user