Permalink
Browse files

net: fix incorrect sizeof()

  • Loading branch information...
1 parent 0696e78 commit a8692a0154747b38f1715bb339a2de27ff7998c1 @thughes thughes committed with bnoordhuis Aug 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/node_net.cc
View
@@ -519,7 +519,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)); \
} \

0 comments on commit a8692a0

Please sign in to comment.