diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index c10035e48..b8873d45e 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -6,8 +6,11 @@ #include #include -#ifndef __APPLE__ +#ifdef __APPLE__ #include +#else +#include +#include #endif #if defined(WIN32) @@ -1409,7 +1412,7 @@ std::string GetProgramPath() return {}; } - std::string ret(buffer, len); + std::string ret(buffer); std::free(buffer); return ret; }