[ox/oc] Fix C string writing
This commit is contained in:
parent
496afd66ea
commit
c426decd99
2
deps/ox/src/ox/oc/write.cpp
vendored
2
deps/ox/src/ox/oc/write.cpp
vendored
@ -27,7 +27,7 @@ Error OrganicClawWriter::fieldCString(const char *key, const char *const*val, in
|
|||||||
}
|
}
|
||||||
|
|
||||||
Error OrganicClawWriter::fieldCString(const char *key, const char *const*val) noexcept {
|
Error OrganicClawWriter::fieldCString(const char *key, const char *const*val) noexcept {
|
||||||
return fieldCString(key, const_cast<const char**>(val), {});
|
return fieldCString(key, const_cast<const char**>(val), static_cast<int>(ox_strlen(val)));
|
||||||
}
|
}
|
||||||
|
|
||||||
Error OrganicClawWriter::field(const char *key, const UUID *uuid) noexcept {
|
Error OrganicClawWriter::field(const char *key, const UUID *uuid) noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user