mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:27:43 +00:00
LibCore: Add missing .characters() for String::format.
This commit is contained in:
parent
68b361bd21
commit
a9f7b576a4
1 changed files with 3 additions and 3 deletions
|
@ -24,8 +24,8 @@
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <LibCore/DirIterator.h>
|
|
||||||
#include <AK/Vector.h>
|
#include <AK/Vector.h>
|
||||||
|
#include <LibCore/DirIterator.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
namespace Core {
|
namespace Core {
|
||||||
|
@ -108,8 +108,8 @@ String find_executable_in_path(String filename)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto directory : StringView { getenv("PATH") }.split_view(':')) {
|
for (auto directory : String { getenv("PATH") }.split(':')) {
|
||||||
auto fullpath = String::format("%s/%s", directory, filename);
|
auto fullpath = String::format("%s/%s", directory.characters(), filename.characters());
|
||||||
|
|
||||||
if (access(fullpath.characters(), X_OK) == 0)
|
if (access(fullpath.characters(), X_OK) == 0)
|
||||||
return fullpath;
|
return fullpath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue