diff --git a/deps/ox/src/ox/fs/filesystem/filelocation.cpp b/deps/ox/src/ox/fs/filesystem/filelocation.cpp index 4290beed..75212f2a 100644 --- a/deps/ox/src/ox/fs/filesystem/filelocation.cpp +++ b/deps/ox/src/ox/fs/filesystem/filelocation.cpp @@ -29,7 +29,7 @@ FileAddress::FileAddress(uint64_t inode) noexcept { } FileAddress::FileAddress(const ox::String &path) noexcept { - auto pathSize = path.bytes() + 1; + auto pathSize = path.bytes(); m_data.path = new char[pathSize]; memcpy(m_data.path, path.c_str(), pathSize); m_type = FileAddressType::Path;