rindex.c.patch   [plain text]


--- rindex.c.orig	Tue May 20 15:23:54 2003
+++ rindex.c	Tue Dec 16 00:58:56 2003
@@ -53,9 +53,10 @@
 (const char *p, int ch)
 {
 	char *save;
+	char c = ch;
 
 	for (save = NULL;; ++p) {
-		if (*p == ch)
+		if (*p == c)
 			save = (char *)p;
 		if (*p == '\0')
 			return (save);