- Timestamp:
- Sep 17, 2009 3:40:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/darwin/NetIf-darwin.cpp
r22815 r23103 350 350 pNew->enmMediumType = NETIF_T_ETHERNET; 351 351 Assert(sizeof(pNew->szShortName) >= cbNameLen); 352 memcpy(pNew->szShortName, pSdl->sdl_data, cbNameLen);352 memcpy(pNew->szShortName, pSdl->sdl_data, pSdl->sdl_nlen); 353 353 /* 354 354 * If we found the adapter in the list returned by … … 362 362 else 363 363 { 364 memcpy(pNew->szName, pSdl->sdl_data, cbNameLen);364 memcpy(pNew->szName, pSdl->sdl_data, pSdl->sdl_nlen); 365 365 /* Generate UUID from name and MAC address. */ 366 366 RTUUID uuid;
Note:
See TracChangeset
for help on using the changeset viewer.