VirtualBox

Changeset 103285 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Feb 8, 2024 3:27:12 PM (10 months ago)
Author:
vboxsync
Message:

Re-applied r161549 again (Got rid of a lot of deprecated strcpy / strcat calls; now using the IPRT pendants (found by Parfait)), left out some stuff which wasn't wanted, less bloated version of DrvAudio.cpp. bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/DBGFR3PlugIn.cpp

    r103275 r103285  
    280280    int rc = RTPathAppend(pszModule, cchModule, DBGF_PLUG_IN_PREFIX);
    281281    AssertRCReturn(rc, VERR_TRY_AGAIN);
    282     strcat(&pszModule[cchPath], pPlugIn->szName);
    283     strcat(&pszModule[cchPath + sizeof(DBGF_PLUG_IN_PREFIX) - 1 + pPlugIn->cchName], pszSuff);
     282    rc = RTStrCat(pszModule, cchModule, pPlugIn->szName);
     283    AssertRCReturn(rc, VERR_TRY_AGAIN);
     284    rc = RTStrCat(pszModule, cchModule, pszSuff);
     285    AssertRCReturn(rc, VERR_TRY_AGAIN);
    284286    Assert(strlen(pszModule) < cchModule - 4);
    285287
     
    480482    rc = RTPathAppend(szPath, sizeof(szPath) - cchSuff, DBGF_PLUG_IN_PREFIX "*");
    481483    AssertRCReturnVoid(rc);
    482     strcat(szPath, pszSuff);
     484    rc = RTStrCat(szPath, sizeof(szPath), pszSuff);
     485    AssertRCReturnVoid(rc);
    483486
    484487    RTDIR hDir;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette