diff --git a/source/filesystem/filesystem.cpp b/source/filesystem/filesystem.cpp index 51d70ff4..215a587e 100644 --- a/source/filesystem/filesystem.cpp +++ b/source/filesystem/filesystem.cpp @@ -430,7 +430,7 @@ namespace nana { delete[] p; return s; } - return buf; + return (nana::string) buf; } #elif defined(NANA_LINUX) const char * s = ::getenv("PWD");