summaryrefslogtreecommitdiff
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 03:46:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 03:46:46 +0000
commita010be9c458a505672dbe0fe1324a00f8563d109 (patch)
treef1860bc813520afa82d9982e24f63b6c935b66c9 /usr.bin/diff/diffreg.c
parentcc42ded5595041a71abbf1d4a971d056828e78ec (diff)
index -> strrchr
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index 5c2c83c4723..fb43bdba19b 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.9 2003/06/25 03:42:16 deraadt Exp $ */
+/* $OpenBSD: diffreg.c,v 1.10 2003/06/25 03:46:45 deraadt Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -383,7 +383,7 @@ splice(char *dir, char *file)
fprintf(stderr, "diff: can't specify - with other arg directory\n");
done(0);
}
- tail = rindex(file, '/');
+ tail = strrchr(file, '/');
if (tail == 0)
tail = file;
else