Browse Source

CDirIterator: Fix another instance of StringView::characters() misuse.

Andreas Kling 6 năm trước cách đây
mục cha
commit
56563cb305
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Libraries/LibCore/CDirIterator.cpp

+ 1 - 1
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;
     }