VirtualBox

Changeset 103260 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Feb 7, 2024 4:56:08 PM (15 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161549
Message:

Got rid of a lot of deprecated strcpy / strcat calls; now using the IPRT pendants (found by Parfait). bugref:3409

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/DrvAudio.cpp

    r98454 r103260  
    48424842#define QUERY_VAL_RET(a_Width, a_szName, a_pValue, a_uDefault, a_ExprValid, a_szValidRange) \
    48434843            do { \
    4844                 rc = RT_CONCAT(pHlp->pfnCFGMQueryU,a_Width)(pDirNode, strcpy(szNm, a_szName), a_pValue); \
     4844                rc = RTStrCopy(szNm, sizeof(szNm), a_szName); \
     4845                AssertRCReturn(rc, PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, \
     4846                                                       N_("Configuration error: Name '%s' too long [1]"), szNm)); \
     4847                rc = RT_CONCAT(pHlp->pfnCFGMQueryU,a_Width)(pDirNode, szNm, a_pValue); \
    48454848                if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) \
    48464849                { \
    4847                     rc = RT_CONCAT(pHlp->pfnCFGMQueryU,a_Width)(pCfg, strcat(szNm, pszDir), a_pValue); \
     4850                    rc = RTStrCat(szNm, sizeof(szNm), pszDir); \
     4851                    AssertRCReturn(rc, PDMDrvHlpVMSetError(pDrvIns, rc, RT_SRC_POS, \
     4852                                                           N_("Configuration error: Name '%s' too long [2]"), pszDir)); \
     4853                    rc = RT_CONCAT(pHlp->pfnCFGMQueryU,a_Width)(pCfg, szNm, a_pValue); \
    48484854                    if (rc == VERR_CFGM_VALUE_NOT_FOUND || rc == VERR_CFGM_NO_PARENT) \
    48494855                    { \
Note: See TracChangeset for help on using the changeset viewer.

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