]> git.saurik.com Git - apple/libc.git/blob - string/FreeBSD/rindex.c.patch
Libc-339.tar.gz
[apple/libc.git] / string / FreeBSD / rindex.c.patch
1 --- rindex.c.orig Tue May 20 15:23:54 2003
2 +++ rindex.c Tue Dec 16 00:58:56 2003
3 @@ -53,9 +53,10 @@
4 (const char *p, int ch)
5 {
6 char *save;
7 + char c = ch;
8
9 for (save = NULL;; ++p) {
10 - if (*p == ch)
11 + if (*p == c)
12 save = (char *)p;
13 if (*p == '\0')
14 return (save);