VirtualBox

Changeset 23036 in vbox for trunk/src


Ignore:
Timestamp:
Sep 15, 2009 7:31:47 PM (15 years ago)
Author:
vboxsync
Message:

VBoxNetAdpCtl: strncpy => snprintf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/apps/adpctl/VBoxNetAdpCtl.cpp

    r18864 r23036  
    217217            if (strcmp("remove", pszAddress) == 0)
    218218            {
    219                 strncpy(Req.szName, pszAdapterName, sizeof(Req.szName));
     219                snprintf(Req.szName, sizeof(Req.szName), "%s", pszAdapterName);
    220220                return doIOCtl(VBOXNETADP_CTL_REMOVE, &Req);
    221221            }
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