From 43372225494e81373b37d063e805155a08d3b7d6 Mon Sep 17 00:00:00 2001 From: Haitao Zhang Date: Sat, 26 Sep 2015 18:33:54 -0700 Subject: [PATCH] Fix return char * when path is expected by explicit cast to nana::string first. --- source/filesystem/filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");