- Timestamp:
- May 14, 2021 7:02:25 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/AudioTest.cpp
r89051 r89052 731 731 AssertPtrReturn(pObj, VERR_NO_MEMORY); 732 732 733 i nt rc = RTStrPrintf(pObj->szName, sizeof(pObj->szName), "%04RU32-%s", pSet->cObj, pszName);734 AssertRCReturn(rc, rc);733 if (RTStrPrintf2(pObj->szName, sizeof(pObj->szName), "%04RU32-%s", pSet->cObj, pszName) <= 0) 734 AssertFailedReturn(VERR_BUFFER_OVERFLOW); 735 735 736 736 /** @todo Generalize this function more once we have more object types. */ 737 737 738 738 char szFilePath[RTPATH_MAX]; 739 rc = RTPathJoin(szFilePath, sizeof(szFilePath), pSet->szPathAbs, pObj->szName);739 int rc = RTPathJoin(szFilePath, sizeof(szFilePath), pSet->szPathAbs, pObj->szName); 740 740 AssertRCReturn(rc, rc); 741 741 … … 813 813 814 814 char szOutName[RT_ELEMENTS(AUDIOTEST_PATH_PREFIX_STR) + AUDIOTEST_TAG_MAX + 16]; 815 i nt rc = RTStrPrintf(szOutName, sizeof(szOutName), "%s-%s.tar.gz", AUDIOTEST_PATH_PREFIX_STR, pSet->szTag);816 AssertRCReturn(rc, rc);815 if (RTStrPrintf2(szOutName, sizeof(szOutName), "%s-%s.tar.gz", AUDIOTEST_PATH_PREFIX_STR, pSet->szTag) <= 0) 816 AssertFailedReturn(VERR_BUFFER_OVERFLOW); 817 817 818 818 char szOutPath[RTPATH_MAX]; 819 rc = RTPathJoin(szOutPath, sizeof(szOutPath), pszOutDir, szOutName);819 int rc = RTPathJoin(szOutPath, sizeof(szOutPath), pszOutDir, szOutName); 820 820 AssertRCReturn(rc, rc); 821 821
Note:
See TracChangeset
for help on using the changeset viewer.