From 1d7781e1a6b3322b8a122f2d564e7f71e44a6ab0 Mon Sep 17 00:00:00 2001 From: Pr0curo Date: Fri, 18 Sep 2015 17:20:45 +0200 Subject: [PATCH] fix for gcc/mingw --- source/filesystem/filesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/filesystem/filesystem.cpp b/source/filesystem/filesystem.cpp index 51d70ff4..80396b00 100644 --- a/source/filesystem/filesystem.cpp +++ b/source/filesystem/filesystem.cpp @@ -430,7 +430,8 @@ namespace nana { delete[] p; return s; } - return buf; + nana::string s = buf; + return s; } #elif defined(NANA_LINUX) const char * s = ::getenv("PWD");