libc: fix misleading comment in strstr
Obtained from: musl c53e9b239418
This commit is contained in:
parent
4ca4193760
commit
c6750f07b4
@ -149,7 +149,7 @@ twoway_strstr(const unsigned char *h, const unsigned char *n)
|
||||
for (;;) {
|
||||
/* Update incremental end-of-haystack pointer */
|
||||
if (z - h < l) {
|
||||
/* Fast estimate for MIN(l,63) */
|
||||
/* Fast estimate for MAX(l,63) */
|
||||
size_t grow = l | 63;
|
||||
const unsigned char *z2 = memchr(z, 0, grow);
|
||||
if (z2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user