diff options
-rw-r--r-- | src/node_net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_net.cc b/src/node_net.cc index a0bda02035..5f2d0a1890 100644 --- a/src/node_net.cc +++ b/src/node_net.cc @@ -520,7 +520,7 @@ do { \ } else if (addrlen == sizeof(struct sockaddr_un)) { \ /* first byte is '\0' and all remaining bytes are name; * it is not NUL-terminated and may contain embedded NULs */ \ - (info)->Set(address_symbol, String::New(au->sun_path + 1, sizeof(au->sun_path - 1))); \ + (info)->Set(address_symbol, String::New(au->sun_path + 1, sizeof(au->sun_path) - 1)); \ } else { \ (info)->Set(address_symbol, String::New(au->sun_path)); \ } \ |