summaryrefslogtreecommitdiffstats
path: root/drivers/unix/os_unix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/unix/os_unix.cpp')
-rw-r--r--drivers/unix/os_unix.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp
index f684c63b3b..399d0247fc 100644
--- a/drivers/unix/os_unix.cpp
+++ b/drivers/unix/os_unix.cpp
@@ -394,7 +394,8 @@ String OS_Unix::get_executable_path() const {
memset(buf,0,256);
readlink("/proc/self/exe", buf, sizeof(buf));
//print_line("Exec path is:"+String(buf));
- String b = buf;
+ String b;
+ b.parse_utf8(buf);
if (b=="") {
WARN_PRINT("Couldn't get executable path from /proc/self/exe, using argv[0]");
return OS::get_executable_path();