VirtualBox

Changeset 103285 in vbox for trunk/src/VBox/Debugger


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/Debugger/DBGPlugInDarwin.cpp

    r103275 r103285  
    716716            {
    717717                char szTmp[RTDBG_SEGMENT_NAME_LENGTH + sizeof("_start")];
    718                 strcat(strcpy(szTmp, aSegs[iSeg].szName), "_start");
    719                 rc = RTDbgModSymbolAdd(hMod, szTmp, iSeg, 0 /*uRva*/, 0 /*cb*/, 0 /*fFlags*/, NULL);
     718                rc = RTStrCat(RTStrCopy2(szTmp, sizeof(szTmp), aSegs[iSeg].szName), sizeof(szTmp), "_start");
     719                if (RT_SUCCESS(rc))
     720                    rc = RTDbgModSymbolAdd(hMod, szTmp, iSeg, 0 /*uRva*/, 0 /*cb*/, 0 /*fFlags*/, NULL);
    720721            }
    721722            uRvaNext += aSegs[iSeg].cb;
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