1 2 3 4 5 6 7 8 9 10 11 12 13
--- unix/unix.cpp +++ unix/unix.cpp @@ -1162,8 +1162,8 @@ { *drive = 0; - char *slash = strrchr(path, SLASH_CHAR); - char *dot = strrchr(path, '.'); + char *slash = strrchr((char *)path, SLASH_CHAR); + char *dot = strrchr((char *)path, '.'); if (dot && slash && dot < slash) {