Changeset 34123 in vbox for trunk/src/VBox/Main/BusAssignmentManager.cpp
- Timestamp:
- Nov 16, 2010 4:38:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/BusAssignmentManager.cpp
r34044 r34123 20 20 21 21 #include <iprt/asm.h> 22 #include <iprt/string.h> 22 23 23 24 #include <VBox/cfgm.h> … … 218 219 PciDeviceRecord(const char* pszName) 219 220 { 220 ::strncpy(szDevName, pszName, sizeof(szDevName));221 RTStrCopy(szDevName, sizeof(szDevName), pszName); 221 222 } 222 223 223 224 bool operator<(const PciDeviceRecord &a) const 224 225 { 225 return ::strcmp(szDevName, a.szDevName) < 0;226 return RTStrNCmp(szDevName, a.szDevName, sizeof(szDevName)) < 0; 226 227 } 227 228 228 229 bool operator==(const PciDeviceRecord &a) const 229 230 { 230 return ::strcmp(szDevName, a.szDevName) == 0;231 return RTStrNCmp(szDevName, a.szDevName, sizeof(szDevName)) == 0; 231 232 } 232 233 }; … … 325 326 for (iRule = 0; aArrays[iRuleset][iRule].pszName != NULL; iRule++) 326 327 { 327 if ( strcmp(pszName, aArrays[iRuleset][iRule].pszName) == 0)328 if (RTStrCmp(pszName, aArrays[iRuleset][iRule].pszName) == 0) 328 329 aList.push_back(&aArrays[iRuleset][iRule]); 329 330 }
Note:
See TracChangeset
for help on using the changeset viewer.