diff options
Diffstat (limited to 'usr.bin/rusers')
-rw-r--r-- | usr.bin/rusers/rusers.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rusers/rusers.c b/usr.bin/rusers/rusers.c index dd34d13ce94..3a2d9ca8a51 100644 --- a/usr.bin/rusers/rusers.c +++ b/usr.bin/rusers/rusers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rusers.c,v 1.4 1996/08/16 22:24:18 deraadt Exp $ */ +/* $OpenBSD: rusers.c,v 1.5 1997/01/17 07:13:15 millert Exp $ */ /*- * Copyright (c) 1993 John Brezak @@ -29,7 +29,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: rusers.c,v 1.4 1996/08/16 22:24:18 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rusers.c,v 1.5 1997/01/17 07:13:15 millert Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -237,7 +237,7 @@ main(int argc, char *argv[]) int ch; extern int optind; - if (!(argv0 = rindex(argv[0], '/'))) + if (!(argv0 = strrchr(argv[0], '/'))) argv0 = argv[0]; else argv0++; |