VirtualBox

Ignore:
Timestamp:
Jul 13, 2018 12:01:41 AM (7 years ago)
Author:
vboxsync
Message:

iprt/strcache: Try shut up gcc about array bounds. [2nd try]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/string/strcache.cpp

    r73102 r73105  
    684684    pBigEntry->Core.cchString   = RTSTRCACHEENTRY_BIG_LEN;
    685685    /* The following is to try avoid gcc warnings/errors regarding array bounds: */
    686     char *pszDst = pBigEntry->Core.szString;
    687     memcpy(pszDst, pchString, cchString);
     686    char *pszDst = (char *)memcpy(pBigEntry->Core.szString, pchString, cchString);
    688687    pszDst[cchString] = '\0';
    689688    ASMCompilerBarrier();
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