Changeset 36638 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Apr 11, 2011 9:51:59 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71104
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibGuestProp.cpp
r36529 r36638 58 58 DECLINLINE(char const *) RTStrEnd(char const *pszString, size_t cchMax) 59 59 { 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) 62 63 { 63 64 char const *pszRet = (char const *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX); … … 72 73 DECLINLINE(char *) RTStrEnd(char *pszString, size_t cchMax) 73 74 { 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) 76 78 { 77 79 char *pszRet = (char *)memchr(pszString, '\0', RTSTR_MEMCHR_MAX);
Note:
See TracChangeset
for help on using the changeset viewer.