* lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
in period calculation.
(two_way_long_needle): Likewise.
- Reported by Ralf Wildenhues, with the short needle and haystack.
+ The original problem was reported by Mike Stump in
+ http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
+ Ralf Wildenhues provided the short needle and haystack.
* tests/test-strstr.c: Add Ralf's test case to trigger the bug.
Add a more involved test to trigger the bug in two_way_long_needle.