From d1a9fcc67f0c30f15a9924fccd897d8ebd6de268 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 6 Mar 2009 21:07:01 +0000 Subject: (svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr. --- src/fios.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fios.cpp b/src/fios.cpp index 3a365e62f..01c095aad 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -555,7 +555,7 @@ public: /* open the scenario file, but first get the name. * This is safe as we check on extension which * must always exist. */ - *strrchr(filename, '.') = '\0'; + *(char *)strrchr(filename, '.') = '\0'; f = FioFOpenFile(filename, "rb", SCENARIO_DIR, &size); if (f == NULL) return false; -- cgit v1.2.3-70-g09d2