diff --git a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp index 88dd05198..7185fdd8e 100644 --- a/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp +++ b/deps/ox/src/ox/fs/filesystem/passthroughfs.cpp @@ -188,7 +188,7 @@ Error PassThroughFS::writeFileInode(uint64_t, const void*, uint64_t, FileType) n std::string_view PassThroughFS::stripSlash(StringView path) noexcept { const auto pathLen = ox_strlen(path); for (auto i = 0u; i < pathLen && path[0] == '/'; i++) { - path = path.substr(1); + path = substr(path, 1); } return {path.data(), path.bytes()}; }