diff options
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r-- | usr.bin/patch/patch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index be4b7f4ac61..2c438db0789 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -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 @@ char **argv; Strcpy(rejname, outname); #ifndef FLEXFILENAMES { - char *s = rindex(rejname,'/'); + char *s = strrchr(rejname,'/'); if (!s) s = rejname; |