summaryrefslogtreecommitdiffstats
path: root/source/core/slang-zip-file-system.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/slang-zip-file-system.cpp')
-rw-r--r--source/core/slang-zip-file-system.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-zip-file-system.cpp b/source/core/slang-zip-file-system.cpp
index ce25066df..64ed64e13 100644
--- a/source/core/slang-zip-file-system.cpp
+++ b/source/core/slang-zip-file-system.cpp
@@ -430,7 +430,7 @@ SlangResult ZipFileSystemImpl::loadFile(char const* path, ISlangBlob** outBlob)
}
ScopedAllocation alloc;
- if (!alloc.allocate(size_t(fileStat.m_uncomp_size)))
+ if (!alloc.allocateTerminated(size_t(fileStat.m_uncomp_size)))
{
return SLANG_E_OUT_OF_MEMORY;
}