summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hughes <tom.hughes@palm.com>2011-08-05 13:52:27 -0700
committerBen Noordhuis <info@bnoordhuis.nl>2011-08-09 23:56:00 +0200
commit25118b0a26020d7d37ac91f92e575bae0ec947d5 (patch)
tree8708db638075bf7a6e9647ce01c349201cfc8102 /src
parentfc57df283c22f4be664ed72003870a3e813ae4c7 (diff)
downloadnode-new-25118b0a26020d7d37ac91f92e575bae0ec947d5.tar.gz
net: fix incorrect sizeof()
Diffstat (limited to 'src')
-rw-r--r--src/node_net.cc2
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)); \
} \