VirtualBox

Changeset 23103 in vbox for trunk/src


Ignore:
Timestamp:
Sep 17, 2009 3:40:54 PM (15 years ago)
Author:
vboxsync
Message:

HostOnly: Fixed VERR_INTNET_FLT_IF_NOT_FOUND issue (trailing garbage in adapter name).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/darwin/NetIf-darwin.cpp

    r22815 r23103  
    350350        pNew->enmMediumType = NETIF_T_ETHERNET;
    351351        Assert(sizeof(pNew->szShortName) >= cbNameLen);
    352         memcpy(pNew->szShortName, pSdl->sdl_data, cbNameLen);
     352        memcpy(pNew->szShortName, pSdl->sdl_data, pSdl->sdl_nlen);
    353353        /*
    354354         * If we found the adapter in the list returned by
     
    362362        else
    363363        {
    364             memcpy(pNew->szName, pSdl->sdl_data, cbNameLen);
     364            memcpy(pNew->szName, pSdl->sdl_data, pSdl->sdl_nlen);
    365365            /* Generate UUID from name and MAC address. */
    366366            RTUUID uuid;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette