From 9b084b1ece791ae2c88c0a24b0740cdd164de072 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Tue, 9 Aug 1994 03:53:47 +0000 Subject: [PATCH] strrchr not rindex git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4082 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/telnet/telnet/commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index e76eabf11..d58221ce3 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -1403,12 +1403,11 @@ shell(argc, argv) * Fire up the shell in the child. */ register char *shellp, *shellname; - extern char *rindex(); shellp = getenv("SHELL"); if (shellp == NULL) shellp = "/bin/sh"; - if ((shellname = rindex(shellp, '/')) == 0) + if ((shellname = strrchr(shellp, '/')) == 0) shellname = shellp; else shellname++; -- 2.26.2