summaryrefslogtreecommitdiff
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
commit83c6b982320364c4f4f4704bce7039d8736492d8 (patch)
tree7a925cb1135ee7ca35ad2b9c601e525ca82adc22
parentd5762a506985abfe90d04150d4952f94c644f8a2 (diff)
downloadopenttd-83c6b982320364c4f4f4704bce7039d8736492d8.tar.xz
(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.
-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;