diff options
author | frosch <frosch@openttd.org> | 2008-07-13 19:44:05 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2008-07-13 19:44:05 +0000 |
commit | e631c70b1c11915fd64d142ec726bd8e4aa7b1d3 (patch) | |
tree | f46df4bade97cdfd5a19daacd17670e807d27de7 /src | |
parent | ac0ae1536f17a5e7b19ae2e274372a3ea56061a9 (diff) | |
download | openttd-e631c70b1c11915fd64d142ec726bd8e4aa7b1d3.tar.xz |
(svn r13698) -Fix (r13697): MorphOS compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/fileio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 3b9772ff1..1f96e7318 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -373,7 +373,7 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, for (TarLinkList::iterator link = _tar_linklist.begin(); link != _tar_linklist.end(); link++) { const std::string &src = link->first; uint len = src.length(); - if (resolved_len >= len && resolved_name[len - 1] == PATHSEPCHAR && src.compare(0, len, resolved_name, len) == 0) { + if (resolved_len >= len && resolved_name[len - 1] == PATHSEPCHAR && strncmp(src.c_str(), resolved_name, len) == 0) { /* Apply link */ char resolved_name2[MAX_RESOLVED_LENGTH]; const std::string &dest = link->second; |