[ dropping bug-{autoconf,m4} ]
Hi Jim,
* Jim Meyering wrote on Thu, Feb 24, 2011 at 02:00:31PM CET:
>
> Here's what I've just pushed:
Thank you for handling this so promptly. Would it be possible to also
credit Mike Stump as original bug reporter?
Thanks,
Ralf
> Subject: [PATCH] strstr: fix a bug whereby strstr would mistakenly return NULL
>
> * 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.
> * 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.