From: Rick Bird Date: Fri, 25 Mar 2011 19:11:27 +0000 (-0400) Subject: PennMUSH Incorp 182p3 - Misc Not mentioned by changes file X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=68b6c8839fabb9db1727b7c52771b9d4970f7d51;p=cobramush.git PennMUSH Incorp 182p3 - Misc Not mentioned by changes file - changed rindex to strrchr in filecopy.c --- 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