From c426decd993f02cc252a4c943a2310f58b141cf6 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 14 Dec 2023 19:28:14 -0600 Subject: [PATCH] [ox/oc] Fix C string writing --- deps/ox/src/ox/oc/write.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ox/src/ox/oc/write.cpp b/deps/ox/src/ox/oc/write.cpp index 73f95848..024e3545 100644 --- a/deps/ox/src/ox/oc/write.cpp +++ b/deps/ox/src/ox/oc/write.cpp @@ -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 { - return fieldCString(key, const_cast(val), {}); + return fieldCString(key, const_cast(val), static_cast(ox_strlen(val))); } Error OrganicClawWriter::field(const char *key, const UUID *uuid) noexcept {