From ef523e5719f52f7a9ea7bb091da0175593d61dfc Mon Sep 17 00:00:00 2001 From: isaacs Date: Sun, 4 Sep 2011 22:13:01 -0700 Subject: [PATCH] fix test-fs-realpath --- src/node_file.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 0b8e69d..f9e58b4 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -92,7 +92,7 @@ static void After(uv_fs_t *req) { // for a success, which is possible. if (req->result == -1) { // If the request doesn't have a path parameter set. - + if (!req->path) { argv[0] = ErrnoException(req->errorno); } else { @@ -154,7 +154,7 @@ static void After(uv_fs_t *req) { break; case UV_FS_READLINK: - argv[1] = String::New(static_cast(req->ptr), req->result); + argv[1] = String::New(static_cast(req->ptr)); break; case UV_FS_READ: @@ -441,7 +441,7 @@ static Handle 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__ -- 2.7.4