diff --git a/src/node.cc b/src/node.cc index db22ea9a2ddfe4..532f902aadf8e4 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1636,7 +1636,7 @@ static void Cwd(const FunctionCallbackInfo& args) { Local cwd = String::NewFromUtf8(env->isolate(), buf, String::kNormalString, - cwd_len - 1); + cwd_len); args.GetReturnValue().Set(cwd); }