summaryrefslogtreecommitdiff
blob: 2ad6a4eca83bac0bc1eb2b5380e6bd5f626008b8 (plain)
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)
   {