summaryrefslogtreecommitdiff
path: root/src/lib/libc/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/string')
-rw-r--r--src/lib/libc/string/strstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/string/strstr.c b/src/lib/libc/string/strstr.c
index 06795d9838..f5f460a251 100644
--- a/src/lib/libc/string/strstr.c
+++ b/src/lib/libc/string/strstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strstr.c,v 1.10 2026/06/23 13:09:11 tim Exp $ */ 1/* $OpenBSD: strstr.c,v 1.11 2026/06/23 13:10:40 tim Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2005-2018 Rich Felker 4 * Copyright (c) 2005-2018 Rich Felker
@@ -129,7 +129,7 @@ twoway_strstr(const unsigned char *h, const unsigned char *n)
129 for (;;) { 129 for (;;) {
130 /* Update incremental end-of-haystack pointer */ 130 /* Update incremental end-of-haystack pointer */
131 if (z-h < l) { 131 if (z-h < l) {
132 /* Fast estimate for MIN(l,63) */ 132 /* Fast estimate for MAX(l,63) */
133 size_t grow = l | 63; 133 size_t grow = l | 63;
134 const unsigned char *z2 = memchr(z, 0, grow); 134 const unsigned char *z2 = memchr(z, 0, grow);
135 if (z2) { 135 if (z2) {