summaryrefslogtreecommitdiff
path: root/Libraries/LibCore/CDirIterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibCore/CDirIterator.cpp')
-rw-r--r--Libraries/LibCore/CDirIterator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibCore/CDirIterator.cpp b/Libraries/LibCore/CDirIterator.cpp
index d76d52970d..097283bddc 100644
--- a/Libraries/LibCore/CDirIterator.cpp
+++ b/Libraries/LibCore/CDirIterator.cpp
@@ -4,7 +4,7 @@
CDirIterator::CDirIterator(const StringView& path, Flags flags)
: m_flags(flags)
{
- m_dir = opendir(path.characters());
+ m_dir = opendir(String(path).characters());
if (m_dir == nullptr) {
m_error = errno;
}