From 2b91f8d2659a7aa668a5073c054eb7176ad07b20 Mon Sep 17 00:00:00 2001 From: kriskowal Date: Sat, 27 Feb 2010 16:58:54 -0800 Subject: [PATCH] Fixed spurious suffixes on fs.readlink. --- src/node_file.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_file.cc b/src/node_file.cc index ee2c2d6e4f7a4e..285ce4bb654d00 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -275,7 +275,7 @@ static Handle 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)); } }