Mercurial > hg > openttd
changeset 11284:bace6a2ec632 draft
(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.
author | yexo <yexo@openttd.org> |
---|---|
date | Fri, 06 Mar 2009 21:07:01 +0000 |
parents | 65d6451a3be8 |
children | 0bb67e3cb046 |
files | src/fios.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fios.cpp +++ b/src/fios.cpp @@ -555,7 +555,7 @@ /* 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;