Fixed spurious suffixes on fs.readlink.

This commit is contained in:
kriskowal 2010-02-27 16:58:54 -08:00 committed by Ryan Dahl
parent 724ccf10df
commit 2b91f8d265

View File

@ -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));
}
}