0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

net: fix incorrect sizeof()

This commit is contained in:
Tom Hughes 2011-08-05 13:52:27 -07:00 committed by Ben Noordhuis
parent 0696e78d64
commit a8692a0154

View File

@ -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)); \
} \