summaryrefslogtreecommitdiff
path: root/games-arcade/gunocide2ex/files/gunocide2ex-1.0-glibc2.10.patch
blob: 2bfdd80f0f84e8e4f8f9824893acfe212c28bc45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/src/mmgr.cpp
+++ b/src/mmgr.cpp
@@ -228,9 +228,9 @@
 
 static	const char	*sourceFileStripper(const char *sourceFile)
 {
-	char	*ptr = strrchr(sourceFile, '\\');
+	char	*ptr = strrchr((char *)sourceFile, '\\');
 	if (ptr) return ptr + 1;
-	ptr = strrchr(sourceFile, '/');
+	ptr = strrchr((char *)sourceFile, '/');
 	if (ptr) return ptr + 1;
 	return sourceFile;
 }