PennMUSH Incorp 182p3 - Misc Not mentioned by changes file
authorRick Bird <nveid@bender.theari.com>
Fri, 25 Mar 2011 19:11:27 +0000 (15:11 -0400)
committerRick Bird <nveid@bender.theari.com>
Fri, 25 Mar 2011 19:11:27 +0000 (15:11 -0400)
 - changed rindex to strrchr in filecopy.c

src/filecopy.c

index aec19bad1021150b109b09c6f2f09eaad8b4d35f..29182dc93819fa48a8d7a88ba9a1cd3fc70eb44a 100644 (file)
@@ -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