diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:47:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 01:47:11 +0000 |
commit | ad75ac69416bbdb92964625dc7018b9d0a44debc (patch) | |
tree | ba7ba3da15c2719a518dbcbc854edfe281ae9020 /include/VBox/VBoxGuestLibSharedFoldersInline.h | |
parent | Releasing progress-linux version 7.0.16-dfsg-8~progress7.99u1. (diff) | |
download | virtualbox-ad75ac69416bbdb92964625dc7018b9d0a44debc.tar.xz virtualbox-ad75ac69416bbdb92964625dc7018b9d0a44debc.zip |
Merging upstream version 7.0.18-dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/VBox/VBoxGuestLibSharedFoldersInline.h')
-rw-r--r-- | include/VBox/VBoxGuestLibSharedFoldersInline.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/VBox/VBoxGuestLibSharedFoldersInline.h b/include/VBox/VBoxGuestLibSharedFoldersInline.h index 6bfdd982..7b8e3e6e 100644 --- a/include/VBox/VBoxGuestLibSharedFoldersInline.h +++ b/include/VBox/VBoxGuestLibSharedFoldersInline.h @@ -1502,10 +1502,11 @@ DECLINLINE(int) VbglR0SfHostReqReadLinkContigSimple(SHFLROOT idRoot, const char + SHFLSTRING_HEADER_SIZE + (uint32_t)cchPath); if (pReq) { + char * const pszReqPath = pReq->StrPath.String.ach; pReq->StrPath.u16Length = (uint16_t)cchPath; pReq->StrPath.u16Size = (uint16_t)cchPath + 1; - RT_BCOPY_UNFORTIFIED(pReq->StrPath.String.ach, pszPath, cchPath); - pReq->StrPath.String.ach[cchPath] = '\0'; + RT_BCOPY_UNFORTIFIED(pszReqPath, pszPath, cchPath); + pszReqPath[cchPath] = '\0'; { int vrc = VbglR0SfHostReqReadLinkContig(idRoot, pvBuf, PhysBuffer, cbBuffer, pReq); |