VirtualBox

Changeset 31841 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Aug 21, 2010 7:02:03 PM (14 years ago)
Author:
vboxsync
Message:

FreeBSD: build fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r31766 r31841  
    67516751    Utf8Str str(tapDeviceName);
    67526752    if (str.length() + strlen(szTapdev) <= sizeof(szTapdev))
    6753         strcat(szTapdev, str.raw());
     6753        strcat(szTapdev, str.c_str());
    67546754    else
    6755         memcpy(szTapdev + strlen(szTapdev), str.raw(), sizeof(szTapdev) - strlen(szTapdev) - 1); /** @todo bitch about names which are too long... */
     6755        memcpy(szTapdev + strlen(szTapdev), str.c_str(),
     6756sizeof(szTapdev) -
     6757strlen(szTapdev) - 1); /** @todo bitch about names which are too long... */
    67566758    int rcVBox = RTFileOpen(&maTapFD[slot], szTapdev,
    67576759                            RTFILE_O_READWRITE | RTFILE_O_OPEN | RTFILE_O_DENY_NONE | RTFILE_O_INHERIT | RTFILE_O_NON_BLOCK);
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