From 3e150a880447536a0af58c395e5a857635e985d3 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 17 Jan 1997 07:14:33 +0000 Subject: r?index -> strr?chr --- sys/arch/amiga/stand/binpatch/binpatch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/amiga/stand/binpatch') diff --git a/sys/arch/amiga/stand/binpatch/binpatch.c b/sys/arch/amiga/stand/binpatch/binpatch.c index 60d04a0dc94..4b123971d57 100644 --- a/sys/arch/amiga/stand/binpatch/binpatch.c +++ b/sys/arch/amiga/stand/binpatch/binpatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: binpatch.c,v 1.3 1997/01/15 23:41:49 millert Exp $ */ +/* $OpenBSD: binpatch.c,v 1.4 1997/01/17 07:12:27 millert Exp $ */ /* $NetBSD: binpatch.c,v 1.6 1995/08/18 15:28:28 chopps Exp $ */ /* Author: Markus Wild mw@eunet.ch ??? */ @@ -398,7 +398,7 @@ static void FindOffset(char *symbol,u_long *index) */ static u_long FindAssign(char *symbol,u_long *rvalue) { - char *ce = rindex(symbol,'='); /* Assign symbol some number */ + char *ce = strrchr(symbol,'='); /* Assign symbol some number */ char *cn = ce + 1; /* This should point at some number, no spaces allowed */ u_long dr = 0; /* flag for do_replace */ if (ce) -- cgit v1.2.3