From 37e38c6d29b676fef75899f468cbc08cfaf7e2e1 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Thu, 30 Nov 2023 01:02:29 -0600 Subject: [PATCH] [ox/fs] Change substr function form (synced from dd16577b5059beefd9ad14eed3699654d2bef8f1) --- src/ox/fs/filesystem/passthroughfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ox/fs/filesystem/passthroughfs.cpp b/src/ox/fs/filesystem/passthroughfs.cpp index 88dd05198..7185fdd8e 100644 --- a/src/ox/fs/filesystem/passthroughfs.cpp +++ b/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()}; }