fs/FileSystem, ...: use AllocatedPath::FromFS(string_view)

This commit is contained in:
Max Kellermann
2020-04-03 15:57:53 +02:00
parent 91c75a133f
commit 56b4b010d6
4 changed files with 4 additions and 5 deletions

View File

@@ -55,8 +55,7 @@ ReadLink(Path path)
errno = ENOMEM;
return nullptr;
}
buffer[size] = '\0';
return AllocatedPath::FromFS(buffer);
return AllocatedPath::FromFS(std::string_view{buffer, size_t(size)});
#endif
}