Fix return char * when path is expected by explicit cast to
nana::string first.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user