=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/window/Attic/main.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/window/Attic/main.c 1996/06/26 05:43:17 1.4 +++ src/usr.bin/window/Attic/main.c 1997/01/17 07:13:52 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.4 1996/06/26 05:43:17 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.5 1997/01/17 07:13:52 millert Exp $ */ /* $NetBSD: main.c,v 1.6 1996/02/08 20:45:01 mycroft Exp $ */ /* @@ -47,7 +47,7 @@ #if 0 static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/2/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.4 1996/06/26 05:43:17 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.5 1997/01/17 07:13:52 millert Exp $"; #endif #endif /* not lint */ @@ -72,7 +72,7 @@ char tflag = 0; escapec = ESCAPEC; - if (p = rindex(*argv, '/')) + if (p = strrchr(*argv, '/')) p++; else p = *argv; @@ -118,7 +118,7 @@ (void) fprintf(stderr, "Out of memory.\n"); exit(1); } - if (p = rindex(default_shellfile, '/')) + if (p = strrchr(default_shellfile, '/')) p++; else p = default_shellfile;