summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index 32ad5c2fc..74ea8e91e 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -807,7 +807,7 @@ void ChangeWorkingDirectory(const char *exe)
if (app_bundle != NULL) app_bundle[0] = '\0';
#endif /* WITH_COCOA */
- char *s = strrchr(exe, PATHSEPCHAR);
+ char *s = (char*)strrchr(exe, PATHSEPCHAR);
if (s != NULL) {
*s = '\0';
#if defined(__DJGPP__)