=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/diff/diffreg.c,v retrieving revision 1.9 retrieving revision 1.10 diff -c -r1.9 -r1.10 *** src/usr.bin/diff/diffreg.c 2003/06/25 03:42:16 1.9 --- src/usr.bin/diff/diffreg.c 2003/06/25 03:46:45 1.10 *************** *** 1,4 **** ! /* $OpenBSD: diffreg.c,v 1.9 2003/06/25 03:42:16 deraadt Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. --- 1,4 ---- ! /* $OpenBSD: diffreg.c,v 1.10 2003/06/25 03:46:45 deraadt Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. *************** *** 383,389 **** fprintf(stderr, "diff: can't specify - with other arg directory\n"); done(0); } ! tail = rindex(file, '/'); if (tail == 0) tail = file; else --- 383,389 ---- fprintf(stderr, "diff: can't specify - with other arg directory\n"); done(0); } ! tail = strrchr(file, '/'); if (tail == 0) tail = file; else