mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r6098) -Fix 6097: stupid me.... CHARS! Not strings, for strrchr :(
This commit is contained in:
parent
d2ca8c197a
commit
67af9da593
@ -1313,7 +1313,7 @@ int CDECL main(int argc, char* argv[])
|
|||||||
/* get the targetfile, strip any directories and append to destination path */
|
/* get the targetfile, strip any directories and append to destination path */
|
||||||
#if defined(__MINGW32__) || defined (__CYGWIN__)
|
#if defined(__MINGW32__) || defined (__CYGWIN__)
|
||||||
/* Under mingw32 and cygwin, we enter / via the Makefile, not the expected \ */
|
/* Under mingw32 and cygwin, we enter / via the Makefile, not the expected \ */
|
||||||
r = strrchr(argv[1], "/");
|
r = strrchr(argv[1], '/');
|
||||||
#else
|
#else
|
||||||
r = strrchr(argv[1], PATHSEPCHAR);
|
r = strrchr(argv[1], PATHSEPCHAR);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user