Changeset 31543 in vbox for trunk/src/VBox/Main
- Timestamp:
- Aug 10, 2010 4:27:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r31539 r31543 6621 6621 Utf8Str str(tapDeviceName); 6622 6622 if (str.length() <= sizeof(IfReq.ifr_name)) 6623 strcpy(IfReq.ifr_name, str. raw());6623 strcpy(IfReq.ifr_name, str.c_str()); 6624 6624 else 6625 memcpy(IfReq.ifr_name, str. raw(), sizeof(IfReq.ifr_name) - 1); /** @todo bitch about names which are too long... */6625 memcpy(IfReq.ifr_name, str.c_str(), sizeof(IfReq.ifr_name) - 1); /** @todo bitch about names which are too long... */ 6626 6626 IfReq.ifr_flags = IFF_TAP | IFF_NO_PI; 6627 6627 rcVBox = ioctl(maTapFD[slot], TUNSETIFF, &IfReq);
Note:
See TracChangeset
for help on using the changeset viewer.