fix serious bug in strchr - char signedness
authorRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 22:16:11 +0000 (18:16 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 3 Apr 2011 22:16:11 +0000 (18:16 -0400)
commitc68b26369e89ead7511ef113850035775c5d183d
treeb75c4b530fb1426513b6043cb84198c88af27b33
parent2155afd73ef15b8a4ce0f0b488068120cca1f0b6
fix serious bug in strchr - char signedness

search for bytes with high bit set was giving (potentially dangerous)
wrong results. i've tested, cleaned up, and hopefully sped up this
function now.
src/string/strchr.c