From fa85352612be82c6add5dd53c66211fe500b29b2 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 27 Aug 2014 15:25:16 -0400 Subject: [PATCH] switch uv_cwd back to &max --- src/util/uv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/uv.cpp b/src/util/uv.cpp index 94f074bfa..65c790b9c 100644 --- a/src/util/uv.cpp +++ b/src/util/uv.cpp @@ -10,7 +10,7 @@ std::string cwd() { do { max += 256; dir.resize(max); - uv_cwd(const_cast(dir.data()), max); + uv_cwd(const_cast(dir.data()), &max); } while (max == dir.size()); dir.resize(max - 1); return dir;