Changeset 13522 in vbox
- Timestamp:
- Oct 23, 2008 9:21:07 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl2.cpp
r13406 r13522 1272 1272 1273 1273 # elif defined(RT_OS_SOLARIS) 1274 /* The name is on the form format 'ifX - long name, chop it off at space. */1274 /* The name is on the form format 'ifX[:1] - long name, chop it off at space. */ 1275 1275 char szTrunk[8]; 1276 1276 strncpy(szTrunk, pszHifName, sizeof(szTrunk)); … … 1284 1284 if (pszSpace) 1285 1285 *pszSpace = '\0'; 1286 1287 /* Chop it off at the colon (zone naming eg: e1000g:1 we need only the e1000g) */ 1288 char *pszColon = (char *)memchr(szTrunk, ':', sizeof(szTrunk)); 1289 if (pszColon) 1290 *pszColon = '\0'; 1291 1286 1292 const char *pszTrunk = szTrunk; 1287 1293 # elif defined(RT_OS_WINDOWS)
Note:
See TracChangeset
for help on using the changeset viewer.