VirtualBox

Changeset 43015 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Aug 27, 2012 10:08:53 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
80349
Message:

A small RTStrPrintf fix in half dead code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvTAP.cpp

    r40282 r43015  
    492492
    493493    RTStrPrintf(szCommand, sizeof(szCommand), "%s %s", pThis->pszSetupApplication,
    494             pThis->fStatic ? pThis->pszDeviceName : "");
     494                pThis->fStatic ? pThis->pszDeviceName : "");
    495495
    496496    /* Pipe open the setup application. */
     
    647647
    648648    ifReq.lifr_ppa = iPPA;
    649     RTStrPrintf (ifReq.lifr_name, sizeof(ifReq.lifr_name), pThis->pszDeviceName);
     649    RTStrCopy(ifReq.lifr_name, sizeof(ifReq.lifr_name), pThis->pszDeviceName);
    650650
    651651    if (ioctl(InterfaceFD, SIOCSLIFNAME, &ifReq) == -1)
     
    710710    /* Reuse ifReq */
    711711    memset(&ifReq, 0, sizeof(ifReq));
    712     RTStrPrintf (ifReq.lifr_name, sizeof(ifReq.lifr_name), pThis->pszDeviceName);
     712    RTStrCopy(ifReq.lifr_name, sizeof(ifReq.lifr_name), pThis->pszDeviceName);
    713713    ifReq.lifr_ip_muxid  = IPMuxID;
    714714#ifdef VBOX_SOLARIS_TAP_ARP
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