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/freebsd/NetIf-freebsd.cpp

    r44742 r47117  
    272272        {
    273273            struct ifreq IfReq;
    274             strcpy(IfReq.ifr_name, pNew->szShortName);
     274            RTStrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pNew->szShortName);
    275275            if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
    276276            {
     
    389389
    390390            struct ifreq IfReq;
    391             strcpy(IfReq.ifr_name, pInfo->szShortName);
     391            RTSTrCopy(IfReq.ifr_name, sizeof(IfReq.ifr_name), pInfo->szShortName);
    392392            if (ioctl(sock, SIOCGIFFLAGS, &IfReq) < 0)
    393393            {
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