Browse Source

Fixed spurious suffixes on fs.readlink.

v0.7.4-release
kriskowal 15 years ago
committed by Ryan Dahl
parent
commit
2b91f8d265
  1. 2
      src/node_file.cc

2
src/node_file.cc

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

Loading…
Cancel
Save