Skip to content

Commit

Permalink
Fixed spurious suffixes on fs.readlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriskowal authored and ry committed Feb 28, 2010
1 parent 724ccf1 commit 2b91f8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ static Handle<Value> ReadLink(const Arguments& args) {
char buf[PATH_MAX];
ssize_t bz = readlink(*path, buf, PATH_MAX);
if (bz == -1) return ThrowException(errno_exception(errno));
return scope.Close(String::New(buf));
return scope.Close(String::New(buf, bz));
}
}

Expand Down

0 comments on commit 2b91f8d

Please sign in to comment.