Browse Source

core: fix usage of uv_cwd

It was modified in libuv to be consistent with uv_exepath and not
include the trailing NULL byte in the returned size.

PR-URL: https://github.com/joyent/node/pull/8566
Reviewed-by: Fedor Indutny <fedor@indutny.com>
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
v0.11.15-release
Saúl Ibarra Corretgé 10 years ago
committed by Trevor Norris
parent
commit
e46cbaa06d
  1. 2
      src/node.cc

2
src/node.cc

@ -1636,7 +1636,7 @@ static void Cwd(const FunctionCallbackInfo<Value>& args) {
Local<String> cwd = String::NewFromUtf8(env->isolate(),
buf,
String::kNormalString,
cwd_len - 1);
cwd_len);
args.GetReturnValue().Set(cwd);
}

Loading…
Cancel
Save