VirtualBox

Changeset 24673 in vbox for trunk/src


Ignore:
Timestamp:
Nov 15, 2009 3:39:14 PM (15 years ago)
Author:
vboxsync
Message:

VBoxNetFlt.c: Don't use strcpy since it is deprecated on some platforms (darwin).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/VBoxNetFlt.c

    r18064 r24673  
    13691369        pGlobals->TrunkFactory.pfnCreateAndConnect = vboxNetFltFactoryCreateAndConnect;
    13701370#if defined(RT_OS_WINDOWS) && defined(VBOXNETADP)
    1371         strcpy(pGlobals->SupDrvFactory.szName, "VBoxNetAdp");
     1371        memcpy(pGlobals->SupDrvFactory.szName, "VBoxNetAdp", sizeof("VBoxNetAdp"));
    13721372#else
    1373         strcpy(pGlobals->SupDrvFactory.szName, "VBoxNetFlt");
     1373        memcpy(pGlobals->SupDrvFactory.szName, "VBoxNetFlt", sizeof("VBoxNetFlt"));
    13741374#endif
    13751375        pGlobals->SupDrvFactory.pfnQueryFactoryInterface = vboxNetFltQueryFactoryInterface;
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