Changeset 82460 in vbox for trunk/src/VBox
- Timestamp:
- Dec 6, 2019 1:59:10 PM (5 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/SharedClipboard/clipboard-transfers.cpp
r81829 r82460 1456 1456 if (pszPathAbs) 1457 1457 { 1458 char szResolved[RTPATH_MAX + 1];1458 char szResolved[RTPATH_MAX]; 1459 1459 size_t cbResolved = sizeof(szResolved); 1460 1460 rc = RTPathAbsEx(pTransfer->pszPathRootAbs, pszPathAbs, RTPATH_STR_F_STYLE_HOST, szResolved, &cbResolved); -
trunk/src/VBox/HostServices/SharedClipboard/testcase/tstClipboardTransfers.cpp
r81439 r82460 30 30 static int testCreateTempDir(RTTEST hTest, const char *pszTestcase, char *pszTempDir, size_t cbTempDir) 31 31 { 32 char szTempDir[RTPATH_MAX + 1];32 char szTempDir[RTPATH_MAX]; 33 33 int rc = RTPathTemp(szTempDir, sizeof(szTempDir)); 34 34 RTTESTI_CHECK_RC_RET(rc, VINF_SUCCESS, rc); … … 58 58 static int testRemoveTempDir(RTTEST hTest) 59 59 { 60 char szTempDir[RTPATH_MAX + 1];60 char szTempDir[RTPATH_MAX]; 61 61 int rc = RTPathTemp(szTempDir, sizeof(szTempDir)); 62 62 RTTESTI_CHECK_RC_RET(rc, VINF_SUCCESS, rc); … … 88 88 char **ppszFilePathAbs) 89 89 { 90 char szFilePath[RTPATH_MAX + 1];90 char szFilePath[RTPATH_MAX]; 91 91 92 92 int rc = RTStrCopy(szFilePath, sizeof(szFilePath), pszTempDir);
Note:
See TracChangeset
for help on using the changeset viewer.