Changeset 31841 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 21, 2010 7:02:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r31766 r31841 6751 6751 Utf8Str str(tapDeviceName); 6752 6752 if (str.length() + strlen(szTapdev) <= sizeof(szTapdev)) 6753 strcat(szTapdev, str. raw());6753 strcat(szTapdev, str.c_str()); 6754 6754 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(), 6756 sizeof(szTapdev) - 6757 strlen(szTapdev) - 1); /** @todo bitch about names which are too long... */ 6756 6758 int rcVBox = RTFileOpen(&maTapFD[slot], szTapdev, 6757 6759 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.