summaryrefslogtreecommitdiff
path: root/src/fios.cpp
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-06 21:07:01 +0000
committeryexo <yexo@openttd.org>2009-03-06 21:07:01 +0000
commitd1a9fcc67f0c30f15a9924fccd897d8ebd6de268 (patch)
tree7a925cb1135ee7ca35ad2b9c601e525ca82adc22 /src/fios.cpp
parent406832fed8008718aad8005215c1ecfbdb6f9d3a (diff)
downloadopenttd-d1a9fcc67f0c30f15a9924fccd897d8ebd6de268.tar.xz
(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.
Diffstat (limited to 'src/fios.cpp')
-rw-r--r--src/fios.cpp2
1 files changed, 1 insertions, 1 deletions
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;