From a7cf267385d534fb99517ca425b04d5ed64ee4e5 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 28 Sep 2024 18:10:17 -0500 Subject: [PATCH] [studio] Remove null terminator from OC output --- src/olympic/studio/modlib/include/studio/project.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/olympic/studio/modlib/include/studio/project.hpp b/src/olympic/studio/modlib/include/studio/project.hpp index 0672271a..256b64fb 100644 --- a/src/olympic/studio/modlib/include/studio/project.hpp +++ b/src/olympic/studio/modlib/include/studio/project.hpp @@ -133,7 +133,7 @@ ox::Error Project::writeObj(ox::StringViewCR path, T const&obj, ox::ClawFormat f oxRequireM(buff, ox::writeClaw(obj, fmt)); // write to FS oxReturnError(mkdir(parentDir(path))); - oxReturnError(writeBuff(path, buff)); + oxReturnError(writeBuff(path, ox::BufferView{buff} + (fmt == ox::ClawFormat::Organic))); // write type descriptor if (m_typeStore.get().error) { oxReturnError(ox::buildTypeDef(&m_typeStore, &obj));