Fix ib_strstr to actually work correctly when the haystack is smaller
than the needle