aboutsummaryrefslogtreecommitdiffstats
path: root/memmem.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--memmem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/memmem.c b/memmem.c
index 5d6e711..739f7e0 100644
--- a/memmem.c
+++ b/memmem.c
@@ -17,6 +17,7 @@ libsimple_memmem(const void *hay_, size_t hayn, const void *sub_, size_t subn)
if (subn == 1)
return memchr(hay, *sub, hayn);
+ /* TODO segment search if pattern is too large */
next = alloca((subn + 1U) * sizeof(*next));
i = 0, j = SIZE_MAX;
goto beginning;