summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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