summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2008-07-13 19:44:05 +0000
committerfrosch <frosch@openttd.org>2008-07-13 19:44:05 +0000
commit1c17405721e82ecad5b02d7ac6ae69292bffff7a (patch)
treef46df4bade97cdfd5a19daacd17670e807d27de7 /src
parent1655a6f2a80e10c73e6a8792dd20b3c06f7e47a4 (diff)
downloadopenttd-1c17405721e82ecad5b02d7ac6ae69292bffff7a.tar.xz
(svn r13698) -Fix (r13697): MorphOS compilation.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.cpp2
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;