Skip to content

Commit ba589d0

Browse files
addaleaxlegendecas
andauthored
fixup! src: remove std::array overload of FIXED_ONE_BYTE_STRING
Co-authored-by: Chengzhong Wu <[email protected]>
1 parent 2270ea4 commit ba589d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_os.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) {
260260
result.emplace_back(OneByteString(isolate, ip));
261261
result.emplace_back(OneByteString(isolate, netmask));
262262
result.emplace_back(family);
263-
result.emplace_back(OneByteString(isolate, mac.data(), mac.size()));
263+
result.emplace_back(OneByteString(isolate, mac.data(), mac.size() - 1));
264264
result.emplace_back(
265265
Boolean::New(env->isolate(), interfaces[i].is_internal));
266266
if (interfaces[i].address.address4.sin_family == AF_INET6) {

0 commit comments

Comments
 (0)