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

Fix strstr and memmem algorithm.

This commit is contained in:
Eric Blake
2010-10-06 13:48:07 -04:00
committed by Ulrich Drepper
parent 1c37565291
commit 5fb308bca2
3 changed files with 33 additions and 1 deletions

View File

@ -350,8 +350,8 @@ two_way_long_needle (const unsigned char *haystack, size_t haystack_len,
a byte out of place, there can be no match until
after the mismatch. */
shift = needle_len - period;
memory = 0;
}
memory = 0;
j += shift;
continue;
}