From 68b6c8839fabb9db1727b7c52771b9d4970f7d51 Mon Sep 17 00:00:00 2001 From: Rick Bird Date: Fri, 25 Mar 2011 15:11:27 -0400 Subject: [PATCH] PennMUSH Incorp 182p3 - Misc Not mentioned by changes file - changed rindex to strrchr in filecopy.c --- src/filecopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filecopy.c b/src/filecopy.c index aec19ba..29182dc 100644 --- a/src/filecopy.c +++ b/src/filecopy.c @@ -197,7 +197,7 @@ Win32MUSH_setup(void) #ifndef _DEBUG char FileName[256]; if (GetModuleFileName(NULL, FileName, 256) != 0) { - if (!strcasecmp(rindex(FileName, '\\') + 1, "cobramush.exe")) { + if (!strcasecmp(strrchr(FileName, '\\') + 1, "cobramush.exe")) { if (CopyFile("cobramush.exe", "cobramush_run.exe", FALSE)) { do_rawlog(LT_ERR, "Successfully copied executable, starting copy."); #ifdef WIN32SERVICES -- 2.30.2