=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/backupfile.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/patch/backupfile.c 1996/06/10 11:21:25 1.2 --- src/usr.bin/patch/backupfile.c 1997/01/17 07:18:02 1.3 *************** *** 1,4 **** ! /* $OpenBSD: backupfile.c,v 1.2 1996/06/10 11:21:25 niklas Exp $ */ /* backupfile.c -- make Emacs style backup file names Copyright (C) 1990 Free Software Foundation, Inc. --- 1,4 ---- ! /* $OpenBSD: backupfile.c,v 1.3 1997/01/17 07:18:02 millert Exp $ */ /* backupfile.c -- make Emacs style backup file names Copyright (C) 1990 Free Software Foundation, Inc. *************** *** 14,20 **** Some algorithms adapted from GNU Emacs. */ #ifndef lint ! static char rcsid[] = "$OpenBSD: backupfile.c,v 1.2 1996/06/10 11:21:25 niklas Exp $"; #endif /* not lint */ #include --- 14,20 ---- Some algorithms adapted from GNU Emacs. */ #ifndef lint ! static char rcsid[] = "$OpenBSD: backupfile.c,v 1.3 1997/01/17 07:18:02 millert Exp $"; #endif /* not lint */ #include *************** *** 215,221 **** { char *base; ! base = rindex (name, '/'); return base ? base + 1 : name; } --- 215,221 ---- { char *base; ! base = strrchr (name, '/'); return base ? base + 1 : name; } *************** *** 232,238 **** char *slash; int length; /* Length of result, not including NUL. */ ! slash = rindex (path, '/'); if (slash == 0) { /* File is in the current directory. */ --- 232,238 ---- char *slash; int length; /* Length of result, not including NUL. */ ! slash = strrchr (path, '/'); if (slash == 0) { /* File is in the current directory. */