Skip to content

Instantly share code, notes, and snippets.

@isaacs
Created September 5, 2011 05:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaacs/1194133 to your computer and use it in GitHub Desktop.
Save isaacs/1194133 to your computer and use it in GitHub Desktop.
diff --git a/src/node_file.cc b/src/node_file.cc
index 0b8e69d..1fcf373 100644
--- a/src/node_file.cc
+++ b/src/node_file.cc
@@ -441,7 +441,7 @@ static Handle<Value> ReadLink(const Arguments& args) {
ASYNC_CALL(readlink, args[1], *path)
} else {
SYNC_CALL(readlink, *path, *path)
- return scope.Close(String::New((char*)SYNC_REQ.ptr, SYNC_REQ.result));
+ return scope.Close(String::New((char*)SYNC_REQ.ptr));
}
}
#endif // __POSIX__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment