• Geoff Simmons's avatar
    Fix a bug in match(). · 47eae6cd
    Geoff Simmons authored
    The search may have matched a string that is actually a prefix of
    the subject string, if a longer string with the same prefix is also
    in the set.
    
    This "happens" to give correct results for match(), but which()
    would return the wrong value.
    
    The fix uses strcmp() instead of memcmp(), but that is also
    vectorized, where the C library uses vector instructions.
    47eae6cd
configure.ac 3.07 KB