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