1
0
Fork 0

(svn r15633) -Fix (r15632): apparently there are several conflicting definitions of the arguments / return values of strrchr.

release/0.7
yexo 2009-03-06 21:07:01 +00:00
parent 406832fed8
commit d1a9fcc67f
1 changed files with 1 additions and 1 deletions

View File

@ -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;