diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 395a6e4af..b24b2e04a 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -520,7 +520,7 @@ void *I_FindFirst (const char *filespec, findstate_t *fileinfo) { FString dir; - char *slash = strrchr (filespec, '/'); + const char *slash = strrchr (filespec, '/'); if (slash) { pattern = slash+1;