--- 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) {