Browse Source

src: accommodate uv_cwd including null on win32

v0.11.12-release v0.11.12
Timothy J Fontaine 11 years ago
parent
commit
7d6b8db40f
  1. 6
      src/node.cc

6
src/node.cc

@ -1552,6 +1552,12 @@ static void Cwd(const FunctionCallbackInfo<Value>& args) {
return env->ThrowUVException(err, "uv_cwd");
}
#ifdef _WIN32
// TODO(tjfontaine) in the future libuv will report the size include the null
// for now only windows does, remove conditionals after libuv upgrade
cwd_len -= 1;
#endif
Local<String> cwd = String::NewFromUtf8(env->isolate(),
buf,
String::kNormalString,

Loading…
Cancel
Save