Fix return char * when path is expected by explicit cast to

nana::string first.
This commit is contained in:
Haitao Zhang 2015-09-26 18:33:54 -07:00
parent 3c13cec4b7
commit 4337222549

View File

@ -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");