=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/patch.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- src/usr.bin/patch/patch.c 1996/09/24 04:19:28 1.8 +++ src/usr.bin/patch/patch.c 1997/01/17 07:13:04 1.9 @@ -1,4 +1,4 @@ -/* $OpenBSD: patch.c,v 1.8 1996/09/24 04:19:28 millert Exp $ */ +/* $OpenBSD: patch.c,v 1.9 1997/01/17 07:13:04 millert Exp $ */ /* patch - a program to apply diffs to original files * @@ -9,7 +9,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: patch.c,v 1.8 1996/09/24 04:19:28 millert Exp $"; +static char rcsid[] = "$OpenBSD: patch.c,v 1.9 1997/01/17 07:13:04 millert Exp $"; #endif /* not lint */ #include "INTERN.h" @@ -301,7 +301,7 @@ Strcpy(rejname, outname); #ifndef FLEXFILENAMES { - char *s = rindex(rejname,'/'); + char *s = strrchr(rejname,'/'); if (!s) s = rejname;