Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
net: fix incorrect sizeof()
Browse files Browse the repository at this point in the history
  • Loading branch information
thughes authored and bnoordhuis committed Aug 9, 2011
1 parent fc57df2 commit 25118b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_net.cc
Expand Up @@ -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)); \
} \
Expand Down

0 comments on commit 25118b0

Please sign in to comment.