projects
/
cobramush.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ce7bc5
)
PennMUSH Incorp 182p3 - Misc Not mentioned by changes file
author
Rick Bird
<nveid@bender.theari.com>
Fri, 25 Mar 2011 19:11:27 +0000
(15:11 -0400)
committer
Rick 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
patch
|
blob
|
history
diff --git
a/src/filecopy.c
b/src/filecopy.c
index aec19bad1021150b109b09c6f2f09eaad8b4d35f..29182dc93819fa48a8d7a88ba9a1cd3fc70eb44a 100644
(file)
--- 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