- Timestamp:
- Feb 14, 2024 1:50:42 AM (12 months ago)
- svn:sync-xref-src-repo-rev:
- 161655
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/fdt.cpp
r101470 r103342 1689 1689 return rc; 1690 1690 1691 /* First pass, go over all strings and find out how much we have to add in total. */ 1692 uint32_t cbStrings = 0; 1691 1693 va_list vaCopy; 1692 1694 va_copy(vaCopy, va); 1693 1694 /* First pass, go over all strings and find out how much we have to add in total. */1695 uint32_t cbStrings = 0;1696 1695 for (uint32_t i = 0; i < cStrings; i++) 1697 1696 cbStrings += (uint32_t)strlen(va_arg(vaCopy, const char *)) + 1; /* Include terminator. */ 1697 va_end(vaCopy); 1698 1698 1699 1699 uint32_t cbProp = RT_ALIGN_32(cbStrings + 3 * sizeof(uint32_t), sizeof(uint32_t)); /* Account for property token and the property data. */
Note:
See TracChangeset
for help on using the changeset viewer.