summaryrefslogtreecommitdiff
path: root/src/string/wcsrchr.c
AgeCommit message (Collapse)AuthorLines
2026-09-09fix undefined pointer arithmetic in wcsrchrMatthias Goergens-2/+6
On an unsuccessful search, the backwards loop decrements the pointer past the beginning of the string and then compares that invalid pointer with the string pointer. Check for the beginning of the string before decrementing instead. This preserves the existing results without forming a pointer outside the array.
2011-06-13fix wrong type for wcsrchr argument 2Rich Felker-1/+1
2011-02-12initial check-in, version 0.5.0v0.5.0Rich Felker-0/+8