aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/gc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/gc.cpp')
-rw-r--r--src/zenstore/gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index 39a747dae..e8cf6ec5e 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -169,7 +169,7 @@ LoadCompactBinaryObject(const fs::path& Path)
void
SaveCompactBinaryObject(const fs::path& Path, const CbObject& Object)
{
- WriteFile(Path, Object.GetBuffer().AsIoBuffer());
+ TemporaryFile::SafeWriteFile(Path, Object.GetBuffer().GetView());
}
//////////////////////////////////////////////////////////////////////////