Changeset 84848 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jun 16, 2020 12:17:41 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR3LibGuestCtrl.cpp
r84842 r84848 1314 1314 #define GROW_STR(a_Str, a_cbMax) \ 1315 1315 pStartupInfo->psz##a_Str = (char *)RTMemRealloc(pStartupInfo->psz##a_Str, \ 1316 RT_M AX(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax)); \1316 RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax)); \ 1317 1317 AssertPtrBreakStmt(pStartupInfo->psz##a_Str, VERR_NO_MEMORY); \ 1318 pStartupInfo->cb##a_Str = RT_M AX(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax);1318 pStartupInfo->cb##a_Str = RT_MIN(pStartupInfo->cb##a_Str * cGrowthFactor, a_cbMax); 1319 1319 1320 1320 /* We can't tell which parameter doesn't fit, so we have to resize all. */
Note:
See TracChangeset
for help on using the changeset viewer.