- Timestamp:
- Feb 26, 2010 10:06:07 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp
r26808 r26821 97 97 size_t cbData = CFDataGetLength(DataRef); 98 98 const uint8_t *pu8Data = CFDataGetBytePtr(DataRef); 99 rc = RTStrCopy(pszBuf, RT_MIN(cbData, cbBuf), (const char*)pu8Data); 99 memcpy(pszBuf, pu8Data, RT_MIN(cbData, cbBuf)); 100 pszBuf[RT_MIN(cbData + 1, cbBuf)] = '\0'; 101 rc = VINF_SUCCESS; 100 102 break; 101 103 }
Note:
See TracChangeset
for help on using the changeset viewer.