Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit e46cbaa

Browse files
saghultrevnorris
authored andcommitted
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: #8566 Reviewed-by: Fedor Indutny <[email protected]> Reviewed-by: Trevor Norris <[email protected]>
1 parent a5f1307 commit e46cbaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ static void Cwd(const FunctionCallbackInfo<Value>& args) {
16361636
Local<String> cwd = String::NewFromUtf8(env->isolate(),
16371637
buf,
16381638
String::kNormalString,
1639-
cwd_len - 1);
1639+
cwd_len);
16401640
args.GetReturnValue().Set(cwd);
16411641
}
16421642

0 commit comments

Comments
 (0)