VirtualBox

Changeset 26821 in vbox for trunk


Ignore:
Timestamp:
Feb 26, 2010 10:06:07 AM (15 years ago)
Author:
vboxsync
Message:

Runtime/r3/darwin: RTSystemQueryDmiString fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/darwin/RTSystemQueryDmiString-darwin.cpp

    r26808 r26821  
    9797                size_t cbData = CFDataGetLength(DataRef);
    9898                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;
    100102                break;
    101103            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette