Changeset 11993 in vbox for trunk/src/VBox/Main/ConsoleImpl2.cpp
- Timestamp:
- Sep 2, 2008 3:23:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r11870 r11993 1225 1225 1226 1226 # elif defined(RT_OS_SOLARIS) 1227 /* The name is on the form BSD format 'ifX'; use as-is. */ 1228 const char *pszTrunk = pszHifName; 1227 /* The name is on the form BSD format 'ifX - long name, chop it off at space. */ 1228 char szTrunk[8]; 1229 strncpy(szTrunk, pszHifName, sizeof(szTrunk)); 1230 char *pszSpace = (char *)memchr(szTrunk, ' ', sizeof(szTrunk)); 1231 if (!pszSpace) 1232 { 1233 hrc = networkAdapter->Detach(); H(); 1234 return VMSetError(pVM, VERR_INTERNAL_ERROR, RT_SRC_POS, 1235 N_("Malformed host interface networking name '%ls'"), 1236 HifName.raw()); 1237 } 1238 *pszSpace = '\0'; 1239 const char *pszTrunk = szTrunk; 1229 1240 # else 1230 1241 # error "PORTME (VBOX_WITH_NETFLT)"
Note:
See TracChangeset
for help on using the changeset viewer.