Changeset 47117 in vbox for trunk/src/VBox/Main/glue
- Timestamp:
- Jul 12, 2013 12:48:17 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87211
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/glue/initterm.cpp
r46651 r47117 346 346 return NS_ERROR_FILE_ACCESS_DENIED; 347 347 AssertRCReturn(vrc, NS_ERROR_FAILURE); 348 strcpy(szXptiDat, szCompReg);349 348 vrc = RTStrCopy(szXptiDat, sizeof(szXptiDat), szCompReg); 349 AssertRCReturn(vrc, NS_ERROR_FAILURE); 350 350 vrc = RTPathAppend(szCompReg, sizeof(szCompReg), "compreg.dat"); 351 351 AssertRCReturn(vrc, NS_ERROR_FAILURE); … … 397 397 { 398 398 /* Iterate over all other paths */ 399 szAppHomeDir[RTPATH_MAX - 1] = '\0'; 400 strncpy(szAppHomeDir, kAppPathsToProbe[i], RTPATH_MAX - 1); 399 RTStrCopy(szAppHomeDir, sizeof(szAppHomeDir), kAppPathsToProbe[i]); 401 400 vrc = VINF_SUCCESS; 402 401 } … … 406 405 continue; 407 406 } 408 409 407 char szCompDir[RTPATH_MAX]; 410 vrc = RTPathAppend(strcpy(szCompDir, szAppHomeDir), sizeof(szCompDir), "components"); 408 vrc = RTStrCopy(szCompDir, sizeof(szCompDir), szAppHomeDir); 409 if (RT_FAILURE(vrc)) 410 { 411 rc = NS_ERROR_FAILURE; 412 continue; 413 } 414 vrc = RTPathAppend(szCompDir, sizeof(szCompDir), "components"); 411 415 if (RT_FAILURE(vrc)) 412 416 {
Note:
See TracChangeset
for help on using the changeset viewer.