VirtualBox

Ignore:
Timestamp:
Jul 12, 2013 12:48:17 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87211
Message:

Main: RT_ZERO() / RTStrCopy()

File:
1 edited

Legend:

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

    r47001 r47117  
    205205    {
    206206        struct lifreq IfReq;
    207         strcpy(IfReq.lifr_name, szNICInstance);
     207        RTStrCopy(IfReq.lifr_name, sizeof(IfReq.lifr_name), szNICInstance);
    208208        if (ioctl(Sock, SIOCGLIFADDR, &IfReq) >= 0)
    209209        {
     
    244244    {
    245245        struct lifreq IfReq;
    246         strcpy(IfReq.lifr_name, szNICInstance);
     246        RTStrCopy(IfReq.lifr_name, sizeof(IfReq.lifr_name), szNICInstance);
    247247        if (ioctl(Sock, SIOCGLIFADDR, &IfReq) >= 0)
    248248        {
Note: See TracChangeset for help on using the changeset viewer.

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