From a9f7b576a484597992670dff0900da50043fe3bd Mon Sep 17 00:00:00 2001 From: asynts Date: Wed, 16 Sep 2020 20:46:33 +0200 Subject: [PATCH] LibCore: Add missing .characters() for String::format. --- Libraries/LibCore/DirIterator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Libraries/LibCore/DirIterator.cpp b/Libraries/LibCore/DirIterator.cpp index 3272e05921..73f7426976 100644 --- a/Libraries/LibCore/DirIterator.cpp +++ b/Libraries/LibCore/DirIterator.cpp @@ -24,8 +24,8 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include #include +#include #include namespace Core { @@ -108,8 +108,8 @@ String find_executable_in_path(String filename) return {}; } - for (auto directory : StringView { getenv("PATH") }.split_view(':')) { - auto fullpath = String::format("%s/%s", directory, filename); + for (auto directory : String { getenv("PATH") }.split(':')) { + auto fullpath = String::format("%s/%s", directory.characters(), filename.characters()); if (access(fullpath.characters(), X_OK) == 0) return fullpath;