Changeset 103343 in vbox
- Timestamp:
- Feb 14, 2024 1:55:23 AM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/fdt.cpp
r103342 r103343 1708 1708 *pu32++ = RT_H2BE_U32(offStr); 1709 1709 1710 char *p b= (char *)pu32;1710 char *pchDst = (char *)pu32; 1711 1711 for (uint32_t i = 0; i < cStrings; i++) 1712 1712 { 1713 const char * psz= va_arg(va, const char *);1714 /* MSVC doesn't know about stpcpy(), so we have to query the string length again... */1715 uint32_t cbStr = (uint32_t)strlen(psz);1716 strcpy(pb, psz);1717 p b += cbStr + 1;1713 const char * const pszSrc = va_arg(va, const char *); 1714 size_t const cbStr = strlen(pszSrc) + 1; 1715 Assert((size_t)(pchDst - (char *)pu32) >= cbStr); 1716 memcpy(pchDst, pszSrc, cbStr); 1717 pchDst += cbStr; 1718 1718 } 1719 1719
Note:
See TracChangeset
for help on using the changeset viewer.