VirtualBox

Changeset 36638 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Apr 11, 2011 9:51:59 AM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71104
Message:

addendum to r71078: there is another limit of 15 bytes required

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp

    r36529 r36638  
    5858DECLINLINE(char const *) RTStrEnd(char const *pszString, size_t cchMax)
    5959{
    60     /* Avoid potential issues with memchr seen in glibc. */
    61     if (cchMax > RTSTR_MEMCHR_MAX)
     60    /* Avoid potential issues with memchr seen in glibc.
     61     * See sysdeps/x86_64/memchr.S in glibc versions older than 2.11 */
     62    while (cchMax > RTSTR_MEMCHR_MAX)
    6263    {
    6364        char const *pszRet = (char const *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX);
     
    7273DECLINLINE(char *) RTStrEnd(char *pszString, size_t cchMax)
    7374{
    74     /* Avoid potential issues with memchr seen in glibc. */
    75     if (cchMax > RTSTR_MEMCHR_MAX)
     75    /* Avoid potential issues with memchr seen in glibc.
     76     * See sysdeps/x86_64/memchr.S in glibc versions older than 2.11 */
     77    while (cchMax > RTSTR_MEMCHR_MAX)
    7678    {
    7779        char *pszRet = (char *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX);
Note: See TracChangeset for help on using the changeset viewer.

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