diff --git a/src/fileio.cpp b/src/fileio.cpp index 32ad5c2fca..74ea8e91ee 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__)