1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Fix tolower operation in strcasestr.

This commit is contained in:
Ulrich Drepper
2010-07-30 00:09:07 -07:00
parent 76e6d6bca7
commit fe36dd025e
3 changed files with 7 additions and 2 deletions

View File

@ -97,7 +97,7 @@ do_test (size_t align1, size_t align2, size_t len1, size_t len2,
char *s1 = (char *) (buf1 + align1);
char *s2 = (char *) (buf2 + align2);
static const char d[] = "1234567890abcdef";
static const char d[] = "1234567890abcxyz";
#define dl (sizeof (d) - 1)
char *ss2 = s2;
for (size_t l = len2; l > 0; l = l > dl ? l - dl : 0)