Changeset 100040 in vbox
- Timestamp:
- Jun 1, 2023 6:23:30 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/fdt.cpp
r100037 r100040 1611 1611 uint32_t cbStrings = 0; 1612 1612 for (uint32_t i = 0; i < cStrings; i++) 1613 cbStrings += strlen(va_arg(vaCopy, const char *)) + 1; /* Include terminator. */1613 cbStrings += (uint32_t)strlen(va_arg(vaCopy, const char *)) + 1; /* Include terminator. */ 1614 1614 1615 1615 uint32_t cbProp = RT_ALIGN_32(cbStrings + 3 * sizeof(uint32_t), sizeof(uint32_t)); /* Account for property token and the property data. */ … … 1626 1626 char *pb = (char *)pu32; 1627 1627 for (uint32_t i = 0; i < cStrings; i++) 1628 pb = stpcpy(pb, va_arg(va, const char *)) + 1; 1628 { 1629 const char *psz = va_arg(va, const char *); 1630 /* MSVC doesn't know about stpcpy(), so we have to query the string length again... */ 1631 uint32_t cbStr = (uint32_t)strlen(psz); 1632 strcpy(pb, psz); 1633 pb += cbStr + 1; 1634 } 1629 1635 1630 1636 pThis->cbStruct += cbProp;
Note:
See TracChangeset
for help on using the changeset viewer.