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:
parent
0696e78d64
commit
a8692a0154
@ -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)); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user